Back to templates
Astro Static
An Astro static site hosted on Wasmer Edge

Astro Static Site + Wasmer
This example shows how to build an Astro project and deploy the generated site to Wasmer Edge.
Demo
https://<your-subdomain>.wasmer.app/ (deploy to get a live URL)
How it Works
astro.config.mjsconfigures Astro (this starter uses the default output and no SSR adapters).- Pages live in
src/pages/(index.astrorenders the landing page and pulls in layout/components). npm run buildoutputs static HTML/CSS/JS intodist/, which Wasmer Edge serves directly.
Running Locally
pnpm install # or npm install / yarn install
pnpm run dev
Open http://127.0.0.1:4321/ to see the dev server with hot reload. To preview the production build:
pnpm run build
pnpm run preview
Deploying to Wasmer (Overview)
- Build the site:
pnpm run build(creates thedist/folder). - Configure Wasmer Edge to publish the
dist/directory. - Deploy and visit
https://<your-subdomain>.wasmer.app/.