A small content site built with Astro and deployed on Cosmoner as a static site: built once, then served as plain files.
- Pages are in
src/pages/. - Posts are Markdown files in
src/content/posts/, checked against the schema insrc/content.config.tswhen the site builds. src/pages/404.astrois the page shown for an unknown address.
Select the button above, copy the template to your GitHub account, and deploy
your copy. The wizard can fill in every setting from
.cosmoner/deployment.yaml:
| Setting | Value |
|---|---|
| App type | Static Site |
| Build command | npm ci && npm run build |
| Output directory | dist |
Nothing else needs configuring: a static site has no port and no plan to choose.
Requires Node.js 22.23.4 or newer.
npm install
npm run devOpen http://localhost:4321. To build the site and preview the result:
npm run build
npm run previewMIT