Skip to content

Open-source status page, incident response and uptime monitoring

chore: rewrite themes subdomain (#1388)

Maximilian Kaske1cb7a506ce46
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 48349f4a4..8f2bd5d0a 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -67,6 +67,16 @@ const nextConfig = {
async rewrites() {
return {
beforeFiles: [
+ {
+ source: "/",
+ has: [
+ {
+ type: "host",
+ value: "themes.openstatus.dev",
+ },
+ ],
+ destination: "https://stpg.dev",
+ },
// New design: proxy app routes to external host with slug prefix
{
source: "/:path*",
diff --git a/packages/db/src/schema/pages/constants.ts b/packages/db/src/schema/pages/constants.ts
index 9b8aedb2a..ae3b8a4cd 100644
--- a/packages/db/src/schema/pages/constants.ts
+++ b/packages/db/src/schema/pages/constants.ts
@@ -11,4 +11,5 @@ export const subdomainSafeList = [
"workflows",
"template",
"ssh",
+ "themes",
];