rework pwa cc
Build and Publish Docker Image / build-and-push-image (push) Successful in 1m48s

This commit is contained in:
Zed
2026-07-11 02:01:08 +02:00
parent 9ae37f98ed
commit ce1db937f2
52 changed files with 5210 additions and 48 deletions
+12
View File
@@ -61,6 +61,8 @@ export default defineConfig({
},
],
navigateFallback: "/index.html",
// Never let the SPA fallback swallow API calls.
navigateFallbackDenylist: [/^\/api/],
cleanupOutdatedCaches: true,
},
}),
@@ -70,4 +72,14 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src"),
},
},
server: {
// Dev: forward /api to the backend so the browser sees a single origin
// (required for the httpOnly refresh cookie to work end-to-end).
proxy: {
"/api": {
target: "http://localhost:3001",
changeOrigin: true,
},
},
},
});