Svelte app built with Vite and deployed as static assets via Cloudflare Wrangler.
npm install
Run the Vite dev server:
npm run dev
Open localhost:5173.
Create a production build in dist/:
npm run build
After the build, dist/sw.js gets a new cache version string so service worker updates are picked up on deploy.
Preview the production build locally:
npm run preview
Run wrangler dev against the built assets:
npm run start
Wrangler dev defaults to port 8787 (for example, http://localhost:8787/).
Deploy (build + service worker version bump + wrangler deploy):
npm run deploy
After a successful deploy, a local git tag is created in the format deploy-YYYYMMDD-HHMMSS.