This example shows how to build an Astro project and deploy the generated site to Wasmer Edge.
https://<your-subdomain>.wasmer.app/ (deploy to get a live URL)
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.
pnpm install # or npm install / yarn install
pnpm run devOpen 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- 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/.