Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.09 KB

readme.md

File metadata and controls

27 lines (16 loc) · 1.09 KB

Netlifycms with nextjs

netlifycms with next.js proof of concept

Quick start

Developer Mode

Starting The App Locally

The app can be started locally using following commands:

  1. Install all npm dependencies - In the project's root directory run npm i
  2. Run npm run dev. This will
    • Start the app

The client lives at localhost:3000/ and cms at http://localhost:3000/admin/index.htm.

How it works

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