* dummy commit * Revert "dummy commit" This reverts commit a5ab4e007c7bae6ab73b73dab6d9a345232c9097. * added support for process.env.VERCEL_BRANCH_URL (preview deployments)
20 lines
480 B
TypeScript
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;
|