Skip to content
Snippets Groups Projects
Commit e08c189a authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

read env veariable using windows.__env__

parent a6afd640
No related branches found
No related tags found
2 merge requests!16Develop,!13read env veariable using windows.__env__
Pipeline #85287 passed
...@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment