chore: support VERCEL_BRANCH_URL for preview deployments (#1073)

* dummy commit

* Revert "dummy commit"

This reverts commit a5ab4e007c7bae6ab73b73dab6d9a345232c9097.

* added support for process.env.VERCEL_BRANCH_URL (preview deployments)
This commit is contained in:
Deepak Prabhakara 2025-12-05 17:18:08 +00:00 committed by GitHub
parent 4d9afe7d48
commit efcc1b18d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,10 @@
import { fetchPrivateKey, fetchPublicKey } from 'utils';
const appUrl = process.env.APP_URL || `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` || 'http://localhost:4000';
const appUrl =
process.env.APP_URL ||
`https://${process.env.VERCEL_BRANCH_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();