Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

test

bautistaaa2874a0849b23
diff --git a/packages/auth/src/server.ts b/packages/auth/src/server.ts
index 21cd80b1..48d5279e 100644
--- a/packages/auth/src/server.ts
+++ b/packages/auth/src/server.ts
@@ -103,8 +103,6 @@ export const authOptions: NextAuthOptions = {
};
const useSecureCookies = Boolean(process.env.VERCEL_URL);
-// ok
-const appHostname = new URL(`https://${process.env.VERCEL_URL}` ?? 'http://127.0.0.1').hostname;
export const adminAuthOptions: NextAuthOptions = {
...authOptions,
@@ -115,7 +113,7 @@ export const adminAuthOptions: NextAuthOptions = {
httpOnly: true,
sameSite: 'lax',
path: '/',
- domain: appHostname,
+ domain: 'typehero.dev',
secure: useSecureCookies,
},
},