Skip to content

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

back in my day

bautistaaa70fef9f98b1f
diff --git a/packages/auth/src/server.ts b/packages/auth/src/server.ts
index 9fd35904..21cd80b1 100644
--- a/packages/auth/src/server.ts
+++ b/packages/auth/src/server.ts
@@ -104,7 +104,7 @@ export const authOptions: NextAuthOptions = {
const useSecureCookies = Boolean(process.env.VERCEL_URL);
// ok
-const appHostname = new URL(process.env.VERCEL_URL ?? 'http://127.0.0.1').hostname;
+const appHostname = new URL(`https://${process.env.VERCEL_URL}` ?? 'http://127.0.0.1').hostname;
export const adminAuthOptions: NextAuthOptions = {
...authOptions,