Astro on Netlify Platform Starter
A modern starter based on Astro.js, Tailwind, and Netlify Core Primitives (Edge Functions, Image CDN, Blobs).
Astro Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| npm install | Installs dependencies |
| npm run dev | Starts local dev server at localhost:4321 |
| npm run build | Build your production site to ./dist/ |
| npm run preview | Preview your build locally, before deploying |
| npm run astro ... | Run CLI commands like astro add, astro check |
| npm run astro -- --help | Get help using the Astro CLI |
Deploying to Netlify
Developing Locally
| Prerequisites | | :--------------------------------------------------------------------------- | | Node.js v18.20.8+. | | (optional) nvm for Node version management. |
-
Clone this repository, then run
npm installin its root directory. -
Recommended: link your local repository to a Netlify project. This will ensure you're using the same runtime version for both local development and your deployed project.
netlify link