♻️ Gate the app behind PocketBase authentication

Only signed-in users reach the working pages. Everyone else lands on
the login page and returns to the page they asked for after signing in.
The manifest link moves into the page template and the service worker
is registered only in production builds.
This commit is contained in:
2026-11-30 17:43:13 +00:00
parent 23cecdea80
commit f54e7238b4
3 changed files with 99 additions and 77 deletions
+2
View File
@@ -4,6 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="text-scale" content="scale" />
<meta name="theme-color" content="#1a1a2e" />
<link rel="manifest" href="/manifest.webmanifest" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">