Volver a las plantillas
H3
This example shows how to run H3 on Wasmer Edge as an HTTP server.

H3 + Wasmer
This example shows how to run H3 on Wasmer Edge as an HTTP server.
Demo
https://<your-subdomain>.wasmer.app/ (deploy to get a live URL)
How it Works
server.jsadapts an H3 app to Node's HTTP server withtoNodeListener.- The app responds to
/with a plain-text message. - Wasmer Edge runs the Node.js process and forwards HTTP traffic to the configured port.
Running Locally
npm install
npm start
Open http://127.0.0.1:3000/ to hit the server locally. Set PORT=... if you want to use a different port.
Deploying to Wasmer (Overview)
- Install dependencies and confirm the app starts locally.
- Deploy from this example directory with
wasmer deploy. - Visit
https://<your-subdomain>.wasmer.app/once the deployment is live.