feat: add secure auth, admin and postgres persistence

This commit is contained in:
2026-07-29 21:52:22 -04:00
parent 74b4c3a368
commit 432dd2176f
18 changed files with 946 additions and 256 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
const CACHE_NAME = "roast-planner-static-v1";
const APP_SHELL = [
"/",
"/index.html",
"/landing.html",
"/app.css",
"/worksheet.css",
"/manifest.webmanifest",
@@ -40,7 +40,8 @@ self.addEventListener("fetch", (event) => {
if (request.method !== "GET" || url.origin !== self.location.origin || url.pathname.startsWith("/api/")) return;
if (request.mode === "navigate") {
event.respondWith(fetch(request).catch(() => caches.match("/index.html")));
// Never serve authenticated application HTML from cache after logout.
event.respondWith(fetch(request).catch(() => caches.match("/landing.html")));
return;
}