Gatsby โ Run and Build
Requirements:
- Node.js 18+
Create a new site:
npm init gatsby@latest my-gatsby-sitecd my-gatsby-sitenpm install
Run locally:
npm run develop
Visit http://localhost:8000
Build for production (output to public/
):
npm run build
Serve the production build locally:
npm run serve
Deploy public/
to your static host.