support VERCEL_PROJECT_PRODUCTION_URL (#967)

This commit is contained in:
Deepak Prabhakara 2025-12-05 10:06:43 +00:00 committed by GitHub
parent ee99e97dfe
commit 4d9afe7d48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
import { fetchPrivateKey, fetchPublicKey } from 'utils'; 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 entityId = process.env.ENTITY_ID || 'https://saml.example.com/entityid';
const privateKey = fetchPrivateKey(); const privateKey = fetchPrivateKey();
const publicKey = fetchPublicKey(); const publicKey = fetchPublicKey();