2 Commits

Author SHA1 Message Date
Matt
207fb261e6 Fix build script to use ES modules instead of CommonJS
Some checks failed
Build and Push Docker Images / docker (push) Failing after 2m13s
Convert inject-sw-version.js to ES module syntax since package.json has "type": "module". This fixes the build error in Docker.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:35:49 +01:00
Matt
a279bb6aa9 Add automatic cache clearing and version management to prevent white screen issues
Some checks failed
Build and Push Docker Images / docker (push) Failing after 44s
Implements comprehensive service worker solution with:
- Dynamic versioning using git commit hash or timestamp
- Automatic cache invalidation on new deployments
- Hourly update checks and user notifications
- Network-first caching strategy with 24-hour expiration
- Build automation via prebuild script
- Update notification UI component

This prevents stale cached code from causing white screens by ensuring users always get the latest version after deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:32:50 +01:00