File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1212 "test" : " vitest" ,
1313 "test:ui" : " vitest --ui" ,
1414 "test:run" : " vitest run" ,
15- "test:coverage" : " vitest run --coverage"
15+ "test:coverage" : " vitest run --coverage" ,
16+ "dev" : " vite"
1617 },
1718 "engines" : {
1819 "npm" : " >=11.0.0 <12" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ export default defineConfig({
66 plugins : [
77 vue ( ) ,
88 ] ,
9+ define : {
10+ 'process.env.NODE_ENV' : JSON . stringify ( process . env . NODE_ENV || 'development' ) ,
11+ } ,
912 build : {
1013 outDir : '../server/static/' ,
1114 assetsDir : './assets' ,
@@ -80,4 +83,16 @@ export default defineConfig({
8083 } ,
8184 devSourcemap : true ,
8285 } ,
86+ server : {
87+ proxy : {
88+ '/api' : {
89+ target : 'http://localhost:8080' ,
90+ changeOrigin : true ,
91+ } ,
92+ '/api/v1/ws' : {
93+ target : 'ws://localhost:8080' ,
94+ ws : true ,
95+ } ,
96+ } ,
97+ } ,
8398} ) ;
You can’t perform that action at this time.
0 commit comments