Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: change middleware and cookie to dotcom
Marc Seitz268308278578
diff --git a/middleware.ts b/middleware.tsindex ef8933d4..032e0f82 100644--- a/middleware.ts+++ b/middleware.ts@@ -26,6 +26,7 @@ function isCustomDomain(host: string) {!(host?.includes("localhost") ||host?.includes("papermark.io") ||+ host?.includes("papermark.com") ||host?.endsWith(".vercel.app"))));diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].tsindex 9f71c86b..972701a1 100644--- a/pages/api/auth/[...nextauth].ts+++ b/pages/api/auth/[...nextauth].ts@@ -89,7 +89,7 @@ export const authOptions: NextAuthOptions = {sameSite: "lax",path: "/",// When working on localhost, the cookie domain must be omitted entirely (https://stackoverflow.com/a/1188145)- domain: VERCEL_DEPLOYMENT ? ".papermark.io" : undefined,+ domain: VERCEL_DEPLOYMENT ? ".papermark.com" : undefined,secure: VERCEL_DEPLOYMENT,},},