/wasmer_static_server

a wasmer static server deploy by docker

Primary LanguageJavaScriptMIT LicenseMIT

This is a Svelte project bootstrapped with npm create svelte@latest my-app.

Getting Started

this is a wasmer static server with svelte deploy by docker

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

You can also run the Svelte starter template easily using Wasmer (check out the install guide):

npm run build
wasmer run . --net -- --port 5173

Open http://localhost:5173 with your browser to see the result.

Deploy on Wasmer Edge

The easiest way to deploy your Svelte app is to use the Wasmer Edge.

Live example: https://wasmer-edge-svelte-sample.wasmer.app/

First, you'll need to run npm run build, and then, to deploy to Wasmer Edge:

wasmer deploy

Deploy on docker

docker build -t svelte-app:0.0.1 .

docker run -p 5173:5173 svelte-app:0.0.1