Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
chore: feeds are not available for protected pages
Washington10aacc2585bd
diff --git a/apps/web/src/app/status-page/[domain]/feed/[type]/route.ts b/apps/web/src/app/status-page/[domain]/feed/[type]/route.tsindex 3e7b38d48..68e6552a8 100644--- a/apps/web/src/app/status-page/[domain]/feed/[type]/route.ts+++ b/apps/web/src/app/status-page/[domain]/feed/[type]/route.ts@@ -1,7 +1,7 @@import { statusDict } from "@/data/incidents-dictionary";import { api } from "@/trpc/server";import { Feed } from "feed";-import { notFound } from "next/navigation";+import { notFound, unauthorized } from "next/navigation";import { getBaseUrl } from "../../utils";export const revalidate = 60;@@ -15,6 +15,7 @@ export async function GET(const page = await api.page.getPageBySlug.query({ slug: domain });if (!page) return notFound();+ if (page.passwordProtected) return unauthorized();const baseUrl = getBaseUrl({slug: page.slug,