From 4d9afe7d48b2eb993fbf83954501deb16d404bbd Mon Sep 17 00:00:00 2001 From: Deepak Prabhakara Date: Fri, 5 Dec 2025 10:06:43 +0000 Subject: [PATCH] support VERCEL_PROJECT_PRODUCTION_URL (#967) --- lib/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env.ts b/lib/env.ts index ca9d189..df50c4a 100644 --- a/lib/env.ts +++ b/lib/env.ts @@ -1,6 +1,6 @@ import { fetchPrivateKey, fetchPublicKey } from 'utils'; -const appUrl = process.env.APP_URL || 'http://localhost:4000'; +const appUrl = process.env.APP_URL || `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` || 'http://localhost:4000'; const entityId = process.env.ENTITY_ID || 'https://saml.example.com/entityid'; const privateKey = fetchPrivateKey(); const publicKey = fetchPublicKey();