# Deploying the web scaffold ## Build No bundler required. Serve the folder `docs/web-scaffold/` as static files over **HTTPS**. ## CORS Set the backend for your web origin, e.g.: ```yaml # application-prod.yml or env smoa: cors: allowed-origins: "https://smoa.example.com" ``` ## Nginx example ```nginx location /web/ { alias /var/www/smoa-web-scaffold/; try_files $uri $uri/ /web/index.html; add_header Cache-Control "no-cache" always; } ``` ## PWA - `manifest.webmanifest` – install metadata (add PNG icons as needed). - `sw.js` – registered from `index.html` for a minimal offline shell. ## CI See [.gitea/workflows/ci.yml](../../.gitea/workflows/ci.yml) for backend tests; add a job to `rsync` this directory to your host if desired.