feat(web): add privacy policy page and trim the memory block text

This commit is contained in:
Loki 2026-10-24 17:28:14 +02:00
parent 8ce307e25b
commit 309b77e63c
Signed by: boba
GPG key ID: 253067914055423B
7 changed files with 89 additions and 15 deletions

View file

@ -50,7 +50,13 @@ const server = Bun.serve({
? resolve(root, "src")
: resolve(root, "public");
let file = resolve(base, sourceStyle ? "styles.css" : `.${path}`);
if (path === "/" || path === "/account" || path === "/account/")
if (
path === "/" ||
path === "/account" ||
path === "/account/" ||
path === "/privacy" ||
path === "/privacy/"
)
file = resolve(base, "index.html");
if (!file.startsWith(base + sep))
return new Response(null, { status: 403 });