Astro Blog Starter with Netlify CMS
This example is based on the basic Astro blog starter kit, and adds the Astro Netlify CMS integration.
Quick deploy
Once you’ve got the project set up, you do need to activate Netlify Identity in the Netlify UI and then enable “Git Gateway” to allow e-mail/password authentication.
Commands
All commands are run from the root of the project, from a terminal:
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 |
Note These commands are using
pnpm
, a fast and efficient package manager. You can choose to usenpm
oryarn
instead if you prefer, but remember to update the config innetlify.toml
to match.