Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Rewrite /help to intercom

Richie McIlroy0847f8e42ff9
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 0a30c0e48..0ce78c86e 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -58,7 +58,7 @@ const nextConfig = {
].filter(Boolean),
},
async rewrites() {
- return [
+ const rewrites = [
{
source: "/r/:path*",
destination: "https://dub.cap.link/:path*",
@@ -78,6 +78,14 @@ const nextConfig = {
],
},
];
+ if (process.env.NEXT_PUBLIC_IS_CAP === "true") {
+ rewrites.push({
+ source: "/help/:path*",
+ destination: "https://intercom.help/capsoftware/en/:path*",
+ });
+ }
+
+ return rewrites;
},
async redirects() {
return [