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:
parent
4d9afe7d48
commit
efcc1b18d3
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user