Command Palette

Search for a command to run...

Volver a las plantillas
vite icon

Vite + React Starter

A Vite + React static site hosted on Wasmer Edge

preview of Vite + React Starter

Vite React Static Site + Wasmer

This example shows how to build a Vite React 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.json includes React, React DOM, and the Vite React plugin.
  • scripts/build-static.mjs emits 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)

  1. Build the site: npm run build (creates dist/).
  2. Configure Wasmer Edge to publish the dist/ directory.
  3. Deploy and visit https://<your-subdomain>.wasmer.app/.
Frameworkvite
Languagejavascript
Browse all templates →