Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Redirect cap.link instead of replace

Richie McIlroyb6731a43bd74
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 0a4e5d1a9..42dccace4 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -40,7 +40,7 @@ const nextConfig = {
},
],
},
- async rewrites() {
+ async redirects() {
return [
{
source: "/:path*",
@@ -51,7 +51,12 @@ const nextConfig = {
},
],
destination: "https://cap.so/share/:path*",
+ permanent: true,
},
+ ];
+ },
+ async rewrites() {
+ return [
{
source: "/r/:path*",
destination: "https://dub.cap.link/:path*",