This is a Next.js blog written in Typescript that uses Notion's Public API.
Production: https://www.zamiang.com
- Sitemap
- RSS feed
- Content Security Policy (CSP)
- Robust eslint and prettier config
- Pages for photos and writing
- Two column setup for images
- CDN backed images
First, follow the Notion API getting started guide to get a NOTION_TOKEN, NOTION_POSTS_DATABASE_ID and NOTION_PHOTOS_DATABASE_ID. Add them all to a file called .env.local.
NOTION_TOKEN=
NOTION_POSTS_DATABASE_ID=
NOTION_PHOTOS_DATABASE_ID=
Install dependencies:
npm installStart the server with:
npm run devOpen http://localhost:3000 with your browser to see the result.