This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 24
24
max : 4
25
25
ingresses :
26
26
- " https://www.intern.dev.nav.no/tms-tidligere-varsler-mikrofrontend"
27
+ - " https://www.ansatt.dev.nav.no/tms-tidligere-varsler-mikrofrontend"
27
28
resources :
28
29
limits :
29
30
cpu : " 3"
Original file line number Diff line number Diff line change 1
1
const isProduction = window . location . href . includes ( "www.nav.no" ) ;
2
- const isDevelopment = window . location . href . includes ( "www.intern.dev.nav.no" ) ;
2
+ const isDevelopment =
3
+ window . location . href . includes ( "www.intern.dev.nav.no" ) || window . location . href . includes ( "www.ansatt.dev.nav.no" ) ;
3
4
4
5
export const getEnvironment = ( ) => {
5
6
if ( isDevelopment ) {
@@ -15,17 +16,16 @@ export const getEnvironment = () => {
15
16
16
17
const TMS_VARSEL_API = {
17
18
local : "http://localhost:3000/api/tms-varsel-api" ,
18
- development : "https://www.intern.dev.nav.no /tms-varsel-api" ,
19
+ development : ` ${ window . location . origin } /tms-varsel-api` ,
19
20
production : "https://www.nav.no/tms-varsel-api" ,
20
21
} ;
21
22
22
23
const MIN_SIDE_URL = {
23
24
local : "http://localhost:3000/minside" ,
24
- development : "https://www.intern.dev.nav.no /minside" ,
25
+ development : ` ${ window . location . origin } /minside` ,
25
26
production : "https://www.nav.no/minside" ,
26
27
} ;
27
28
28
29
const tmsVarselAPI = TMS_VARSEL_API [ getEnvironment ( ) ] ;
29
30
export const minSideUrl = MIN_SIDE_URL [ getEnvironment ( ) ] ;
30
31
export const inaktiveVarslerApiUrl = `${ tmsVarselAPI } /inaktive` ;
31
- export const tidligereVarslerUrl = `${ minSideUrl } /varslinger` ;
You can’t perform that action at this time.
0 commit comments