File tree 4 files changed +139
-997
lines changed
4 files changed +139
-997
lines changed Original file line number Diff line number Diff line change 18
18
"@types/koa-json" : " ^2.0.18" ,
19
19
"@types/koa__router" : " ^8.0.2" ,
20
20
"@types/ws" : " ^7.2.6" ,
21
+ "@vitejs/plugin-vue" : " ^1.1.5" ,
21
22
"@vue/compiler-sfc" : " ^3.0.4" ,
22
23
"chokidar" : " ^3.4.0" ,
23
24
"concurrently" : " ^5.2.0" ,
24
25
"fast-glob" : " ^3.2.4" ,
25
26
"fs-extra" : " ^9.0.1" ,
27
+ "koa" : " ^2.13.1" ,
26
28
"koa-bodyparser" : " ^4.3.0" ,
27
29
"koa-error" : " ^3.2.0" ,
28
30
"koa-json" : " ^2.0.2" ,
29
31
"ts-node" : " ^8.10.2" ,
30
32
"ts-node-dev" : " 1.1.1" ,
31
- "vite" : " ^1 .0.0-rc.13 " ,
33
+ "vite" : " ^2 .0.4 " ,
32
34
"ws" : " ^7.3.0"
33
35
}
34
36
}
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " .." ,
2
+ "extends" : " ../tsconfig.json " ,
3
3
"exclude" : [],
4
4
"compilerOptions" : {
5
5
"lib" : [" ES2020" , " DOM" ],
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+
1
4
const API_PORT = process . env . API_PORT || 3002
2
5
3
- export default {
4
- proxy : {
5
- '/api' : {
6
- target : `http://localhost:${ API_PORT } /` ,
7
- changeOrigin : true ,
8
- rewrite : ( path : string ) => path . replace ( / ^ \/ a p i / , '' )
6
+ export default defineConfig ( {
7
+ server : {
8
+ proxy : {
9
+ '/api' : {
10
+ target : `http://localhost:${ API_PORT } /` ,
11
+ changeOrigin : true ,
12
+ rewrite : ( path : string ) => path . replace ( / ^ \/ a p i / , '' )
13
+ }
9
14
}
10
- }
11
- }
15
+ } ,
16
+ plugins : [
17
+ vue ( )
18
+ ]
19
+ } )
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments