Skip to content

Commit

Permalink
add urls
Browse files Browse the repository at this point in the history
  • Loading branch information
firepolo committed Jul 11, 2024
1 parent 1e8542c commit a4964dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const mapCurrentUrlToEnv = {
'https://former22.formationdgcs.ch': 'dgcs-prod',
'https://former22.cffe.cep.swiss': 'cffe-prod',
'https://former22.cffe.cep-val.ch': 'cffe-val',
'https://former22.cep-dev.ch': 'dgjes-prod',
}
const mapCurrentEnvToMiddlewareUrl = {
prod: 'https://middleware.cep.swiss',
Expand All @@ -14,6 +15,7 @@ const mapCurrentEnvToMiddlewareUrl = {
'dgcs-prod': 'https://middleware.formationdgcs.ch',
'cffe-prod': 'https://middleware.cffe.cep.swiss',
'cffe-val': 'https://middleware.cffe.cep-val.ch',
'dgjes-prod': 'https://middleware.cep-dev.ch',
}

export const currentRunningEnv = mapCurrentUrlToEnv[window.location.origin] ?? 'other'
Expand Down

0 comments on commit a4964dd

Please sign in to comment.