File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,15 @@ export class Environment {
50
50
51
51
const jsonText = environmentElement . textContent ;
52
52
const variables = this . parseJsonEnvironment ( jsonText ) ;
53
+ if ( variables === null ) {
54
+ throw new EnvironmentInitError ( environment , jsonText ) ;
55
+ }
56
+
57
+ if ( environment === EnvString . LOCAL ) {
58
+ variables . REACT_APP_URL = `${ window . location . protocol } //${ window . location . host } ` ;
59
+ }
60
+
53
61
if (
54
- variables === null ||
55
62
typeof variables . REACT_APP_URL !== 'string' ||
56
63
typeof variables . REACT_APP_API_URL !== 'string' ||
57
64
typeof variables . REACT_APP_LOGINSERVICE_URL !== 'string'
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export const INNGANG_KATEGORIER: InngangKategori[] = [
58
58
temaKey : TemaKey . DAG ,
59
59
title : 'Dagpenger' ,
60
60
allowsAnke : true ,
61
- digitalKlage : [ ] ,
61
+ digitalKlage : [ EnvString . DEV , EnvString . LOCAL ] ,
62
62
digitalKlageFullmakt : false ,
63
63
path : 'dagpenger' ,
64
64
mailKlageUrl : 'https://www.nav.no/soknader/nb/person/arbeid/dagpenger/NAV%2004-01.03/klage/brev' ,
You can’t perform that action at this time.
0 commit comments