-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
36 lines (35 loc) · 1.27 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
outDir: "../backend/static",
emptyOutDir: true,
sourcemap: true,
rollupOptions: {
output: {
manualChunks: id => {
if (id.includes("@fluentui/react-icons")) {
return "fluentui-icons";
} else if (id.includes("@fluentui/react")) {
return "fluentui-react";
} else if (id.includes("node_modules")) {
return "vendor";
}
}
}
},
target: "esnext"
},
server: {
proxy: {
"/content/": "https://app-backend-m4e2xqbf2aomm.azurewebsites.net",
"/auth_setup": "https://app-backend-m4e2xqbf2aomm.azurewebsites.net",
"/.auth/me": "https://app-backend-m4e2xqbf2aomm.azurewebsites.net",
"/ask": "https://app-backend-m4e2xqbf2aomm.azurewebsites.net",
"/chat": "https://app-backend-m4e2xqbf2aomm.azurewebsites.net",
"/config": "https://app-backend-m4e2xqbf2aomm.azurewebsites.net"
}
}
});