From 22d62d0df5331ac3b3ff9b6241803401158c077d Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 10 Apr 2026 05:38:42 +0400 Subject: [PATCH] update custom domains --- apps/web/src/routes/dashboard.ts | 2 +- apps/web/src/views/status-pages.ejs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index a10a0c4..944ade1 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -684,7 +684,7 @@ export const dashboard = new Elysia() const resolved = await getAccountId(cookie, headers); if (!resolved?.accountId) return redirect("/dashboard"); const pages = await sql` - SELECT id, slug, title, description, theme + SELECT id, slug, title, description, theme, custom_domain FROM status_pages WHERE account_id = ${resolved.accountId} ORDER BY created_at DESC `; diff --git a/apps/web/src/views/status-pages.ejs b/apps/web/src/views/status-pages.ejs index 039fc23..8e3c708 100644 --- a/apps/web/src/views/status-pages.ejs +++ b/apps/web/src/views/status-pages.ejs @@ -25,7 +25,11 @@

<%= p.title %>

<%= p.theme %> - status.pingql.com/<%= p.slug %> + <% if (p.custom_domain) { %> + <%= p.custom_domain %> + <% } else { %> + status.pingql.com/<%= p.slug %> + <% } %> <% if (p.description) { %>

<%= p.description %>

<% } %>