Skip to content
Snippets Groups Projects

read env veariable using windows.__env__

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -6,7 +6,7 @@ export async function createPolicyCheck(user?: Partial<Oidc.Profile>) {
@@ -6,7 +6,7 @@ export async function createPolicyCheck(user?: Partial<Oidc.Profile>) {
return () => true;
return () => true;
}
}
const opaBundletUrl = process.env.OPA_BUNDLE_URL;
const opaBundletUrl = window.__env__.OPA_BUNDLE_URL;
if (typeof opaBundletUrl === 'undefined') {
if (typeof opaBundletUrl === 'undefined') {
console.log('OPA_BUNDLE_URL is not defined');
console.log('OPA_BUNDLE_URL is not defined');
Loading