nextjs-notion-integration
v0.3.1
Published
A tool that helps integrate Next.js with the Notion SDK
Downloads
62
Readme
Introduction
Want to build your site using Notion? Here’s the thing: Notion content is all made up of blocks, so you'll need to render every single block type. This tool helps you do exactly that!
Project Setup
Installation
npm i nextjs-notion-integrationCreate a Notion Integration Key
Go to Notion Developers, create a new integration, and copy the generated Internal Integration Token.
Set up .env file
Create a .env file in the root directory and add the following environment variables:
NOTION_TOKEN=your_integration_key_here
NOTION_PAGE_ID=your_notion_page_id_hereSupproted Notion block types
Check out the components folder in the project. You can use the components in the folder or customize them.
| Name | File Path | Description |
| ------- | ------------------------------------- | -------------- |
| NotionPageList | components/page | A list of page |
| NotionPage | components/page | Single page |
| NotionHeading | components/blocks | Heading |
