Database
Updated to just use DATABASE_* in everything other than local docker.
This commit is contained in:
19 files changed
+120
-56
No files matched your search
+10
-2
@@ -19,11 +19,19 @@
|
||||
// non-GET request (Server Actions, API mutations) is never intercepted at
|
||||
// all — this worker must never sit between the app and a write.
|
||||
|
||||
const CACHE_VERSION = "v1";
|
||||
// v2: /manifest.webmanifest was previously cache-first here alongside the
|
||||
// truly static icon fallbacks — but it's dynamic, per-business content
|
||||
// (name/icons/colors, editable from "App Icon & Home Screen" settings),
|
||||
// not a static build asset. Cache-first meant a phone that had ever
|
||||
// loaded it once would keep serving that stale response indefinitely,
|
||||
// regardless of any later branding change or server-side fix — bumping
|
||||
// CACHE_VERSION forces every existing install to drop its old cache
|
||||
// (including any previously-cached manifest response) on next activate.
|
||||
const CACHE_VERSION = "v2";
|
||||
const CACHE_NAME = `nextchair-shell-${CACHE_VERSION}`;
|
||||
const OFFLINE_URL = "/offline";
|
||||
|
||||
const APP_SHELL = [OFFLINE_URL, "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"];
|
||||
const APP_SHELL = [OFFLINE_URL, "/icons/icon-192.png", "/icons/icon-512.png"];
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
event.waitUntil(
|
||||
|
||||
Reference in new issue
Block a user