File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 126126import { APP_CONFIG_INITIALIZED , CONFIG_CHANGED } from './constants' ;
127127
128128import { publish , subscribe } from './pubSub' ;
129- import { ensureDefinedConfig } from './utils' ;
129+ import { ensureDefinedConfig , getPath } from './utils' ;
130130
131131function extractRegex ( envVar ) {
132132 // Convert the environment variable string to a regex, while guarding
@@ -143,7 +143,7 @@ let config = {
143143 ACCOUNT_PROFILE_URL : process . env . ACCOUNT_PROFILE_URL ,
144144 ACCOUNT_SETTINGS_URL : process . env . ACCOUNT_SETTINGS_URL ,
145145 BASE_URL : process . env . BASE_URL ,
146- PUBLIC_PATH : process . env . PUBLIC_PATH || '/' ,
146+ PUBLIC_PATH : getPath ( process . env . PUBLIC_PATH ) || '/' ,
147147 CREDENTIALS_BASE_URL : process . env . CREDENTIALS_BASE_URL ,
148148 CSRF_TOKEN_API_PATH : process . env . CSRF_TOKEN_API_PATH ,
149149 DISCOVERY_API_BASE_URL : process . env . DISCOVERY_API_BASE_URL ,
You can’t perform that action at this time.
0 commit comments