Skip to content

Netlify CMS nextjs with TypeScript boilerplate code 🎉👾

Notifications You must be signed in to change notification settings

vlzuiev/netlify-cms-test

Repository files navigation

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

About

Netlify CMS nextjs with TypeScript boilerplate code 🎉👾

Resources

Stars

Watchers

Forks

Releases

No releases published