This example shows how to build a Svelte app with Vite and deploy the static output to Wasmer Edge.
https://svelte-starter-template.wasmer.app/
src/routes/+page.svelte(or the starter components) define the UI.- Vite handles bundling;
npm run buildemits a production-ready site intobuild/. - Wasmer Edge serves the static files directly—no server-side rendering required.
npm install
npm run devOpen http://127.0.0.1:5173/ to see the live reloading dev server. When you’re ready for a production preview:
npm run build
npm run preview- Build the project:
npm run build(outputs tobuild/). - Tell Wasmer Edge to publish the
build/directory. - Deploy and visit
https://<your-subdomain>.wasmer.app/.