-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.js
More file actions
57 lines (55 loc) · 1.29 KB
/
vite.config.js
File metadata and controls
57 lines (55 loc) · 1.29 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
server: {
proxy: {
"/accounts": {
target: "https://yeonhee.shop",
changeOrigin: true,
secure: false,
},
"/categories": {
target: "https://yeonhee.shop",
changeOrigin: true,
secure: false,
},
"/products": {
target: "https://yeonhee.shop",
changeOrigin: true,
secure: false,
},
"/reservations": {
target: "https://yeonhee.shop",
changeOrigin: true,
secure: false,
},
"/stores": {
target: "https://yeonhee.shop",
changeOrigin: true,
secure: false,
},
},
},
build: {
rollupOptions: {
output: {
entryFileNames: "assets/[name]-[hash].js",
chunkFileNames: "assets/[name]-[hash].js",
assetFileNames: "assets/[name]-[hash].[ext]",
},
},
sourcemap: false,
chunkSizeWarningLimit: 1000,
},
define: {
__BUILD_TIME__: JSON.stringify(new Date().toISOString()),
__ROUTER_FUTURE_FLAGS__: JSON.stringify({
v7_startTransition: true,
}),
},
});