Skip to content

Commit 0847f8e

Browse files
committed
feat: Rewrite /help to intercom
1 parent 04f7efb commit 0847f8e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apps/web/next.config.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const nextConfig = {
5858
].filter(Boolean),
5959
},
6060
async rewrites() {
61-
return [
61+
const rewrites = [
6262
{
6363
source: "/r/:path*",
6464
destination: "https://dub.cap.link/:path*",
@@ -78,6 +78,14 @@ const nextConfig = {
7878
],
7979
},
8080
];
81+
if (process.env.NEXT_PUBLIC_IS_CAP === "true") {
82+
rewrites.push({
83+
source: "/help/:path*",
84+
destination: "https://intercom.help/capsoftware/en/:path*",
85+
});
86+
}
87+
88+
return rewrites;
8189
},
8290
async redirects() {
8391
return [

0 commit comments

Comments
 (0)