The Dev Server

Starting the server

From your project root:

wasm-drydock dev

On startup the dev server:

  1. Compiles frontend/styles/screen.scss to CSS
  2. Spawns the backend process and polls /api/health_check until it responds
  3. Runs an initial wasm-pack build on the frontend
  4. Starts the HTTP server on http://localhost:8080

Opening the browser automatically

wasm-drydock dev --open

What the server handles

PathBehaviour
/api/*Proxied to the backend
/pkg/*Serves wasm-pack build output
/styles/screen.cssServes compiled SCSS
/ws/reloadWebSocket live reload endpoint
/*SPA fallback — serves index.html

File watchers

The dev server runs five core watchers simultaneously:

WatcherPathFiltersOn change
Frontendfrontend/src/.rswasm-pack build, then browser reload
Backendbackend/src/.rsKill backend, respawn, health check, then browser reload
Stylesfrontend/styles/.scssRecompile SCSS in memory, browser reload
Public assetsfrontend/public/any fileBrowser reload
HTMLfrontend/.htmlBrowser reload

See File Watchers for custom watch path configuration.

Error overlay

When a build fails, the error is pushed to the browser via WebSocket and displayed as a full-screen overlay. The overlay is dismissed automatically when the next successful build completes.