File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
- import { finnMiljoStreng , finnNaisMiljoStreng } from './sagas/util' ;
1
+ import { finnMiljoStreng , finnNaisMiljoStreng , NAIS_PREPROD_SUFFIX } from './sagas/util' ;
2
2
import { post } from './sagas/api' ;
3
3
4
4
const modappDomain = `https://modapp${ finnMiljoStreng ( ) } .adeo.no` ;
@@ -119,11 +119,20 @@ export const funksjonsomradeLenker = (fnr, enhet) => [
119
119
} ,
120
120
] ;
121
121
122
+ function getGosysNaisUrl ( ) {
123
+ const naisMiljo = finnNaisMiljoStreng ( ) ;
124
+ if ( naisMiljo === NAIS_PREPROD_SUFFIX ) {
125
+ return 'https://gosys-nais-q1.nais.preprod.local' ;
126
+ }
127
+ return 'https://gosys-nais.nais.adeo.no' ;
128
+ }
129
+
122
130
function getGosysUrl ( fnr ) {
131
+ const domain = getGosysNaisUrl ( ) ;
123
132
if ( fnr ) {
124
- return `${ wasappDomain } /gosys/personoversikt/fnr=${ fnr } ` ;
133
+ return `${ domain } /gosys/personoversikt/fnr=${ fnr } ` ;
125
134
}
126
- return `${ wasappDomain } /gosys/` ;
135
+ return `${ domain } /gosys/` ;
127
136
}
128
137
129
138
export function gosysLenke ( fnr ) {
You can’t perform that action at this time.
0 commit comments