-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (25 loc) · 947 Bytes
/
vite.config.ts
File metadata and controls
27 lines (25 loc) · 947 Bytes
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
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import tailwindcss from "@tailwindcss/vite";
const VUE_APP_BASE_URL = process.env.VUE_APP_BASE_URL || "";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), tailwindcss()],
build: {
minify: true,
chunkSizeWarningLimit: 3000,
},
server: {
proxy: {
"/orgs": { target: VUE_APP_BASE_URL, changeOrigin: false, xfwd: true },
"/user": { target: VUE_APP_BASE_URL, changeOrigin: false, xfwd: true },
"/auth": { target: VUE_APP_BASE_URL, changeOrigin: false, xfwd: true },
"/oauth": { target: VUE_APP_BASE_URL, changeOrigin: false, xfwd: true },
"/assets": { target: VUE_APP_BASE_URL, changeOrigin: false, xfwd: true },
"/settings": { target: VUE_APP_BASE_URL, changeOrigin: false, xfwd: true }
},
},
define: {
"process.env.VUE_APP_BASE_URL": JSON.stringify(VUE_APP_BASE_URL),
},
});