Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add rewrite for tool
Marc Seitz8c13e4b3312c
diff --git a/middleware.ts b/middleware.tsindex 9f8e5d35..3530e56c 100644--- a/middleware.ts+++ b/middleware.ts@@ -65,6 +65,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {path !== "/investors" &&path !== "/ai" &&path !== "/share-notion-page" &&+ !path.startsWith("/ai-pitch-deck-generator") &&!path.startsWith("/alternatives") &&!path.startsWith("/solutions") &&!path.startsWith("/investors") &&diff --git a/next.config.mjs b/next.config.mjsindex 42a1ba65..4acb293b 100644--- a/next.config.mjs+++ b/next.config.mjs@@ -21,10 +21,13 @@ const nextConfig = {destination: "/view/:path*",permanent: true,},+ ];+ },+ async rewrites() {+ return [{- source: "/ai-pitch-deck-generator",- destination: "https://deck.papermark.io/",- permanent: false,+ source: "/ai-pitch-deck-generator/:path*",+ destination: "https://deck.papermark.io/:path*",},];},