Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: cap.link redirects

Richie McIlroy173d5c468157
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 8f3bec80e..51e210f15 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -60,6 +60,20 @@ const nextConfig = {
},
];
},
+ async rewrites() {
+ return [
+ {
+ source: "/:path*",
+ has: [
+ {
+ type: "host",
+ value: "cap.link",
+ },
+ ],
+ destination: "/share/:path*",
+ },
+ ];
+ },
};
const millionConfig = {