-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
42 lines (39 loc) · 1.03 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import * as path from "path";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import svgrPlugin from "vite-plugin-svgr";
export default defineConfig({
plugins: [react(), svgrPlugin()],
server: {
port: 3000,
proxy: {
'/nooki': {
target: 'https://api.nookipedia.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/nooki/, ''),
},
'/img': {
target: 'https://dodo.ac',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/img/, ''),
},
},
},
// server: {
// port: 3000,
// proxy: {
// // S3 버킷에 대한 프록시 설정 추가
// '/s3-bucket': {
// target: 'https://dodok-s3-bucket.s3.ap-northeast-2.amazonaws.com',
// changeOrigin: true,
// secure: false,
// rewrite: (path) => path.replace(/^\/s3-bucket/, ''),
// },
// },
// },
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});