@@ -51,28 +51,8 @@ export default ({ mode }) => {
51
51
process . env = { ...process . env , ...loadEnv ( mode , `${ process . cwd ( ) } /envDir` ) } ;
52
52
return defineConfig ( {
53
53
server : {
54
- port : 9000 ,
54
+ port : 9005 ,
55
55
proxy : {
56
- '/k9/formidling/dokumentdata' : createProxy ( process . env . APP_URL_K9FORMIDLING_DD || 'http://localhost:8294' ) ,
57
- '/k9/formidling' : createProxy ( process . env . APP_URL_K9FORMIDLING || 'http://localhost:8290' ) ,
58
- '/k9/sak' : {
59
- target : process . env . APP_URL_SAK || 'http://localhost:8080' ,
60
- changeOrigin : ! ! process . env . APP_URL_SAK ,
61
- ws : false ,
62
- secure : false ,
63
- configure : proxy => {
64
- proxy . on ( 'proxyRes' , ( proxyRes , req , res ) => {
65
- if ( proxyRes . headers . location && proxyRes . headers . location . startsWith ( process . env . APP_URL_SAK ) ) {
66
- // eslint-disable-next-line no-param-reassign, prefer-destructuring
67
- proxyRes . headers . location = proxyRes . headers . location . split ( process . env . APP_URL_SAK ) [ 1 ] ;
68
- }
69
- if ( proxyRes . statusCode === 401 ) {
70
- // eslint-disable-next-line no-param-reassign
71
- proxyRes . headers . location = '/ung/sak/resource/login' ;
72
- }
73
- } ) ;
74
- } ,
75
- } ,
76
56
'/ung/sak' : {
77
57
target : process . env . APP_URL_UNG_SAK || 'http://localhost:8085' ,
78
58
changeOrigin : ! ! process . env . APP_URL_UNG_SAK ,
@@ -91,16 +71,6 @@ export default ({ mode }) => {
91
71
} ) ;
92
72
} ,
93
73
} ,
94
- '/k9/oppdrag' : createProxy ( process . env . APP_URL_K9OPPDRAG || 'http://localhost:8070' ) ,
95
- '/k9/klage' : createProxy ( process . env . APP_URL_KLAGE || 'http://localhost:8701' ) ,
96
- '/k9/tilbake' : createProxy ( process . env . APP_URL_K9TILBAKE || 'http://localhost:8030' ) ,
97
- 'k9/endringslogg' : createProxy (
98
- process . env . ENDRINGSLOGG_URL || 'https://familie-endringslogg.intern.dev.nav.no' ,
99
- {
100
- '^/k9/endringslogg' : '' ,
101
- } ,
102
- ) ,
103
- '/k9/feature-toggle/toggles.json' : createMockResponder ( 'http://localhost:8080' , staticJsonResponse ( featureTogglesFactory ( ) ) ) ,
104
74
'/ung/feature-toggle/toggles.json' : createMockResponder ( 'http://localhost:8085' , staticJsonResponse ( featureTogglesFactory ( ) ) ) ,
105
75
} ,
106
76
} ,
0 commit comments