A simple and efficient way to connect Next.js apps with Notion to access and display data
MIT License
This repository contains a mini kit for integrating Notion API with Next.js. This kit provides a simple and efficient way to connect your Next.js applications with Notion to access and display data.
To get started with the Notion Next.js Mini Kit, follow these steps:
Clone the repository:
git clone https://github.com/khaaleoo/notion-nextjs-mini-kit.git
Install dependencies:
cd notion-nextjs-mini-kit
pnpm install
Copy the content in .env.sample to your .env or .env.local
Run the project
pnpm dev
To run this project, you will need to add the following environment variables to your .env file
NOTION_TOKEN
NOTION_DATABASE_ID
To revalidate static pages, access the following endpoint:
https://yourdomain/api/revalidate?path=/yourpath&secret=yoursecret
This project is used by the following pages/blogs:
Contributions are always welcome!
If you have any feedback, please reach out to me at [email protected]