[app] CalmRefresh: Register the worker in the app and offer the waiting version; e2e publishes a real second one

This commit is contained in:
2026-11-02 01:18:09 +01:00
parent beea8eaa10
commit a5480d2877
8 changed files with 111 additions and 10 deletions
+4 -3
View File
@@ -66,9 +66,10 @@ export default defineConfig({
// Never swap a running app silently. A new worker waits until the player
// is offered a calm refresh control (CLAUDE.md §8, GAP_ANALYSIS G0.10).
registerType: 'prompt',
// An emitted registerSW.js file, not an inline snippet: the CSP has no
// 'unsafe-inline' for scripts.
injectRegister: 'script',
// The app registers the worker itself through virtual:pwa-register, so it hears
// when a new version is waiting (calm-refresh.md U1). Bundled, not inline: the
// CSP has no 'unsafe-inline' for scripts.
injectRegister: false,
manifest: {
// The web manifest: one of the three places the name lives, built from
// the constants in @rosea/schema so the strings exist only there.