move cname + slugs from status -> pages

This commit is contained in:
2026-04-10 05:48:00 +04:00
parent 22d62d0df5
commit b1ad8f513b
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ process.on("uncaughtException", (err) => console.error("[uncaughtException]"
const eta = new Eta({ views: resolve(import.meta.dir, "./views"), cache: true, defaultExtension: ".ejs", rmWhitespace: true });
const PUBLIC_BASE = process.env.STATUS_BASE_URL ?? "https://status.pingql.com";
const PUBLIC_BASE = process.env.STATUS_BASE_URL ?? "https://pages.pingql.com";
// Hash the static assets so their URLs change whenever their bytes change.
// Used as cache-busting query strings on the <link>/<script> tags so visitors
@@ -88,7 +88,7 @@ function isAuthorised(page: { id: string; password_hash: string | null }, req: R
// Memoirist (Elysia's router) treats `:slug.json` as a single parameter named
// "slug.json" and refuses to coexist with `:slug`. Instead, use one `:slug`
// route and dispatch on the suffix in the handler.
const STATUS_HOST = process.env.STATUS_HOST || "status.pingql.com";
const STATUS_HOST = process.env.STATUS_HOST || "pages.pingql.com";
function isCustomDomain(request: Request): string | null {
const host = new URL(request.url).hostname;