Scripts
Every npm script in the template.
| Script | What it does |
|---|---|
bun dev | Start dev server at localhost:4321 with HMR. |
bun build | Build to dist/, then run Pagefind to index. |
bun preview | Serve dist/ locally to verify the prod build. |
bun astro … | Astro CLI passthrough — astro check, astro add, etc. |
Environment variables#
| Var | Default | Effect |
|---|---|---|
PUBLIC_BASE | / | Subpath for all generated URLs. Set to /my-repo/ for GitHub Pages project sites. |