From 87a062906565333be9b8904cc8bbe40b7a9ffbda Mon Sep 17 00:00:00 2001 From: Inline Pizza <249805557+InlinePizza@users.noreply.github.com> Date: Thu, 2 Apr 2026 10:27:38 -0700 Subject: [PATCH 1/3] fix: add missing redirects and fix docs subdomain routing - Fix docs.promptless.ai and docs.gopromptless.ai catch-all to redirect to /docs/:path* instead of /:path* so bare paths land correctly - Add specific /docs/:path* and /changelogs/:path* rules for both docs subdomains before the catch-all - Add gopromptless.ai catch-all redirect to promptless.ai - Add missing redirects: webflow-beta, git-hub-integration, jira-integration --- src/lib/generated/redirects.json | 15 +++++++ vercel.json | 72 +++++++++++++++++++++++++++++++- 2 files changed, 86 insertions(+), 1 deletion(-) diff --git a/src/lib/generated/redirects.json b/src/lib/generated/redirects.json index e033bfe6..50041ff4 100644 --- a/src/lib/generated/redirects.json +++ b/src/lib/generated/redirects.json @@ -60,6 +60,11 @@ "destination": "/docs/configuring-promptless/doc-collections/git-hub-repos-docs-as-code", "permanent": true }, + { + "source": "/docs/configuring-promptless/doc-collections/webflow-beta", + "destination": "/docs/configuring-promptless/doc-collections/git-hub-repos-docs-as-code", + "permanent": true + }, { "source": "/docs/configuring-promptless/doc-collections/zendesk", "destination": "/docs/configuring-promptless/doc-collections/git-hub-repos-docs-as-code", @@ -125,6 +130,16 @@ "destination": "/docs/integrations/intercom-integration-beta", "permanent": true }, + { + "source": "/docs/integrations/git-hub-integration", + "destination": "/docs/integrations/github-integration", + "permanent": true + }, + { + "source": "/docs/integrations/jira-integration", + "destination": "/docs/integrations/atlassian-integration", + "permanent": true + }, { "source": "/docs/integrations/microsoft-teams", "destination": "/docs/integrations/microsoft-teams-integration", diff --git a/vercel.json b/vercel.json index c60ce36f..d0a677ae 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,28 @@ { "outputDirectory": "dist", "redirects": [ + { + "source": "/docs/:path*", + "has": [ + { + "type": "host", + "value": "docs.promptless.ai" + } + ], + "destination": "https://promptless.ai/docs/:path*", + "permanent": true + }, + { + "source": "/changelogs/:path*", + "has": [ + { + "type": "host", + "value": "docs.promptless.ai" + } + ], + "destination": "https://promptless.ai/changelog/:path*", + "permanent": true + }, { "source": "/:path*", "has": [ @@ -9,7 +31,29 @@ "value": "docs.promptless.ai" } ], - "destination": "https://promptless.ai/:path*", + "destination": "https://promptless.ai/docs/:path*", + "permanent": true + }, + { + "source": "/docs/:path*", + "has": [ + { + "type": "host", + "value": "docs.gopromptless.ai" + } + ], + "destination": "https://promptless.ai/docs/:path*", + "permanent": true + }, + { + "source": "/changelogs/:path*", + "has": [ + { + "type": "host", + "value": "docs.gopromptless.ai" + } + ], + "destination": "https://promptless.ai/changelog/:path*", "permanent": true }, { @@ -20,6 +64,17 @@ "value": "docs.gopromptless.ai" } ], + "destination": "https://promptless.ai/docs/:path*", + "permanent": true + }, + { + "source": "/:path*", + "has": [ + { + "type": "host", + "value": "gopromptless.ai" + } + ], "destination": "https://promptless.ai/:path*", "permanent": true }, @@ -153,6 +208,11 @@ "destination": "/docs/configuring-promptless/doc-collections/git-hub-repos-docs-as-code", "permanent": true }, + { + "source": "/docs/configuring-promptless/doc-collections/webflow-beta", + "destination": "/docs/configuring-promptless/doc-collections/git-hub-repos-docs-as-code", + "permanent": true + }, { "source": "/docs/configuring-promptless/doc-collections/zendesk", "destination": "/docs/configuring-promptless/doc-collections/git-hub-repos-docs-as-code", @@ -218,6 +278,16 @@ "destination": "/docs/integrations/intercom-integration-beta", "permanent": true }, + { + "source": "/docs/integrations/git-hub-integration", + "destination": "/docs/integrations/github-integration", + "permanent": true + }, + { + "source": "/docs/integrations/jira-integration", + "destination": "/docs/integrations/atlassian-integration", + "permanent": true + }, { "source": "/docs/integrations/microsoft-teams", "destination": "/docs/integrations/microsoft-teams-integration", From 15d13d4ee6dde4e6e71bcbc47d0b12b89eb746c9 Mon Sep 17 00:00:00 2001 From: Inline Pizza <249805557+InlinePizza@users.noreply.github.com> Date: Thu, 2 Apr 2026 11:03:43 -0700 Subject: [PATCH 2/3] fix: correct changelog redirect source path for docs subdomains Old Fern URLs used /changelog/changelogs/:slug, not /changelogs/:slug. --- vercel.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index d0a677ae..58b068b7 100644 --- a/vercel.json +++ b/vercel.json @@ -13,7 +13,7 @@ "permanent": true }, { - "source": "/changelogs/:path*", + "source": "/changelog/:path*", "has": [ { "type": "host", @@ -46,7 +46,7 @@ "permanent": true }, { - "source": "/changelogs/:path*", + "source": "/changelog/:path*", "has": [ { "type": "host", From 22e698ab5b2abf4a618aad610b39f6d7b2e52da8 Mon Sep 17 00:00:00 2001 From: Inline Pizza <249805557+InlinePizza@users.noreply.github.com> Date: Thu, 2 Apr 2026 11:05:19 -0700 Subject: [PATCH 3/3] fix: remove unnecessary /docs/:path* rules for docs subdomains The old Fern site didn't use /docs/ prefixed paths, so these rules would never be hit. The catch-all handles everything correctly. --- vercel.json | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/vercel.json b/vercel.json index 58b068b7..03afbd0b 100644 --- a/vercel.json +++ b/vercel.json @@ -1,17 +1,6 @@ { "outputDirectory": "dist", "redirects": [ - { - "source": "/docs/:path*", - "has": [ - { - "type": "host", - "value": "docs.promptless.ai" - } - ], - "destination": "https://promptless.ai/docs/:path*", - "permanent": true - }, { "source": "/changelog/:path*", "has": [ @@ -34,17 +23,6 @@ "destination": "https://promptless.ai/docs/:path*", "permanent": true }, - { - "source": "/docs/:path*", - "has": [ - { - "type": "host", - "value": "docs.gopromptless.ai" - } - ], - "destination": "https://promptless.ai/docs/:path*", - "permanent": true - }, { "source": "/changelog/:path*", "has": [