This is a Next.js project bootstrapped with create-next-app.
-
Run
npm install -
Run the development server:
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open http://localhost:3000 with your browser to see the result.
The CMS configuration is managed in a single file: public/admin/config.yml
npm run dev
npx decap-server # in another terminalconfig.base.yml(tracked) holds the real CMS config withlocal_backend: falseconfig.local.yml(gitignored) only containslocal_backend: true- The script
scripts/switch-decap-config.mjsmerges these intoconfig.yml(gitignored) - Decap CMS reads
/admin/config.yml
npm run dev:prodThis copies config.base.yml to config.yml (no local backend) so you can test Netlify Identity.
- Edit
public/admin/config.base.ymlfor any CMS changes - Keep
public/admin/config.ymlout of git (it’s generated) config.local.ymlis optional; if missing, prod mode is used
If you'd like to contribute to this repository, feel free to open a pull request or get in touch if you have any questions.