Skip to content

Commit

Permalink
fix undefined process on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Sep 12, 2021
1 parent 417b1d3 commit 9e20416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
ports:
- '9113:9113'
environment:
# - LOGGING=on
- LOGGING=on
- ICM_BASE_URL=https://pwa-ish-demo.test.intershop.com
# - PROXY_ICM=true
- TRUST_ICM=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export const getConfigurationState = createSelector(getCoreState, state => state

export const getICMApplication = createSelector(getConfigurationState, state => state.application || '-');

const ssrBaseUrl = typeof process !== 'undefined' && process.env.ICM_BASE_URL_SSR;

export const getICMServerURL = createSelector(getConfigurationState, state =>
state.baseURL && state.server ? `${process.env.ICM_BASE_URL_SSR || state.baseURL}/${state.server}` : undefined
state.baseURL && state.server ? `${ssrBaseUrl || state.baseURL}/${state.server}` : undefined
);

export const getRestEndpoint = createSelector(
Expand Down

1 comment on commit 9e20416

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure Demo Servers are available:

Please sign in to comment.