Spaces:
Sleeping

Ronti Patange commited on
Commit
83f5986
·
1 Parent(s): 12fa13a

Support configurable socket server URL, add PWA install/auto-refresh support

Browse files

- io() now reads VITE_SERVER_URL (empty on the Space itself, set to the
Space's public URL when this frontend is deployed elsewhere, e.g. Vercel)
- Add manifest.json + minimal service worker for installability; no offline
caching (would go stale for a realtime game), only used to detect new
deploys and reload the page when a new service worker activates

6 files changed +43 -1
Files changed (6)
.env.example+6
App.tsx+1-1
index.html+3
main.tsx+16
manifest.jsonAdded+11
sw.jsAdded+6