notion-blog-sync
v1.0.0
Published
CLI tool to sync Notion posts to Next.js blog with ISR revalidation
Readme
Notion Blog Sync
A CLI tool that syncs published Notion posts to a Next.js blog with ISR revalidation.
Setup
Install dependencies:
npm installCopy the environment variables template:
cp .env.example .envConfigure your environment variables in
.env:NOTION_TOKEN: Your Notion integration tokenDATABASE_ID: The ID of your Notion databaseBLOG_URL: Your Next.js blog deployment URLREVALIDATE_SECRET: Secret for ISR API authentication
Usage
Sync published posts from Notion to your blog:
npm run syncProject Structure
src/
├── cli.js # Main CLI entry point
├── notion-client.js # Notion API integration
├── content-processor.js # Markdown conversion
├── isr-trigger.js # ISR revalidation
├── config.js # Configuration management
└── utils.js # Shared utilities
scripts/
└── sync-notion.js # npm script entry pointDevelopment Status
This is an MVP implementation. Core functionality is being built incrementally.
