Command | Action |
---|---|
pnpm install |
Installs dependencies |
pnpm run dev |
Starts local dev & Netlify CMS proxy servers |
pnpm run build |
Build your production site to ./dist/ |
pnpm run preview |
Serve ./dist/ & run the Netlify CMS proxy server |
If you receive this error: Internal server error: Failed to resolve import "netlify-cms-app" from "virtual:astro-netlify-cms/user-config
pnpm i {,@types/}{react,react-dom}@^17 netlify-cms-app
If you receive the "spawn" error change ./node_modules/astro-netlify-cms/dist/index.js
:
From proxy = spawn('netlify-cms-proxy-server',
to
proxy = spawn('pnpx', ['netlify-cms-proxy-server'],