mocksaml/lib/env.ts
Deepak Prabhakara efcc1b18d3
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)
2025-12-05 17:18:08 +00:00

20 lines
480 B
TypeScript

import { fetchPrivateKey, fetchPublicKey } from 'utils';
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();
const config = {
appUrl,
entityId,
privateKey,
publicKey,
};
export default config;