File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
components/internflate-decorator Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import NAVSPA from '@navikt/navspa' ;
3
3
import { DecoratorConfig } from './internflate-decorator-config' ;
4
+ import { erGCP } from '../../rest/utils' ;
4
5
5
6
const Decorator : React . ComponentType < DecoratorConfig > = NAVSPA . importer < DecoratorConfig > ( 'internarbeidsflatefs' ) ;
6
7
@@ -17,6 +18,7 @@ function lagDecoratorConfig(): DecoratorConfig {
17
18
appname : 'Arbeidsrettet oppfølging' ,
18
19
toggles : {
19
20
visVeileder : true
20
- }
21
+ } ,
22
+ useProxy : erGCP ( )
21
23
} ;
22
24
}
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ export interface FetchState<D = any> {
15
15
httpCode : number ;
16
16
}
17
17
18
+ export function erGCP ( ) : boolean {
19
+ return window . location . hostname . endsWith ( 'intern.nav.no' ) ;
20
+ }
21
+
18
22
export const isAnyNotStartedOrPending = ( fetch : FetchState | FetchState [ ] ) : boolean => {
19
23
if ( Array . isArray ( fetch ) ) {
20
24
return fetch . some ( f => isNotStartedOrPending ( f ) ) ;
You can’t perform that action at this time.
0 commit comments