This is a Next.js template for your website, using Notion as your content editor.
- Create a notion personal integration
- Add the integration to the page that will be used has your website homepage
- Add an .env.production with the keys
NOTION_ACCESS_TOKEN=<YOUR_NOTION_TOKEN>
NOTION_PAGE_ID=<YOUR_NOTION_MAIN_PAGE_ID>
- Go to https://www.notion.so/my-integrations
- Create new integration with Read Content permission
- Get it from Internal Integration Token
You can fetch the Page ID from the URL of that page in your Notion app. If the Page URL is https://www.notion.so/your-worksapce/XXX?v=YYY&p=ZZZ, then the ID of the Page would be ZZZ. Make sure to remove the hyphens from the page ID.
- Go to the page you want to have as main page
- Click on the 3 dots on top right
- Click add connection and search for the name of the integration you created before