Volver a las plantillas
Nuxt Static
A Nuxt static site hosted on Wasmer Edge

Nuxt Static Site + Wasmer
This example shows how to build a Nuxt 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
nuxt.config.tsenables compatibility settings for the Nuxt app.npm run buildrunsnuxt generateand writes static assets into.output/public/.- Wasmer Edge serves the generated files from
.output/public/directly.
Running Locally
npm install
npm run build
npx serve .output/public
Open http://127.0.0.1:3000/ to preview the generated static site.
Deploying to Wasmer (Overview)
- Build the site:
npm run build(creates.output/public/). - Configure Wasmer Edge to publish the
.output/public/directory. - Deploy and visit
https://<your-subdomain>.wasmer.app/.