Volver a las plantillas
Vite Starter
A Vite static site hosted on Wasmer Edge

Vite Static Site + Wasmer
This example shows how to build a Vite static site and host the generated output on Wasmer Edge.
Demo
https://<your-subdomain>.wasmer.app/ (deploy to get a live URL)
How it Works
package.jsonincludes Vite and Vue dependencies.scripts/build-static.mjsemits the static output used by this compact example.- Wasmer Edge serves the generated files from
dist/directly.
Running Locally
npm install
npm run build
npx serve dist
Open http://127.0.0.1:3000/ to preview the generated static site.
Deploying to Wasmer (Overview)
- Build the site:
npm run build(createsdist/). - Configure Wasmer Edge to publish the
dist/directory. - Deploy and visit
https://<your-subdomain>.wasmer.app/.