netlifycms with next.js proof of concept
The app can be started locally using following commands:
- Install all npm dependencies - In the project's root directory run
npm i
- Run
npm run dev
. This will- Start the app
The client lives at localhost:3000/
and cms at http://localhost:3000/admin/index.htm
.
Sites take their content from markdown files in /content
. Two of pages (home
and about
) are referencing directly their respective markdown files.
Blog component loads all posts (during build!) and lists them out How to load multiple md files
Posts are separate static sites thanks to dynamically created export map. I took inspiration on how to do it from here