Notion as a CMS

Notion is a great authoring tool, especially for teams. It allows you to organize content in pages as well as supports structured data in the form of databases.

Using Notion as a CMS is a great option for teams that want a low effort blog or changelog.

How

This repo is a great example of how render data from a private notion page with NextJS. The data is fetched at build time and refetched in the background using SSG. This example has basically reversed engineered the notion api since there is no official API available, yet.

This blog post explains how to use NextJS and react-notion to render public notion pages. They also use notion-api-worker to cache API responses. Although this isn't as important if the data is fetched in the background with SSG.

tags: web

Last Updated March 10, 2021