-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts.timestamp-1711626125665-784ad0e1a5bb7.mjs
34 lines (34 loc) · 3.66 KB
/
vite.config.ts.timestamp-1711626125665-784ad0e1a5bb7.mjs
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
// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///Users/wangtong/Documents/GitHub/pybt-web/pybt-web/.yarn/__virtual__/vite-virtual-2b406dff05/5/.yarn/berry/cache/vite-npm-5.2.6-f05ef664d1-10c0.zip/node_modules/vite/dist/node/index.js";
import vue from "file:///Users/wangtong/Documents/GitHub/pybt-web/pybt-web/.yarn/__virtual__/@vitejs-plugin-vue-virtual-7bd7250ea9/5/.yarn/berry/cache/@vitejs-plugin-vue-npm-5.0.4-e08dc8c74a-10c0.zip/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///Users/wangtong/Documents/GitHub/pybt-web/pybt-web/.yarn/__virtual__/@vitejs-plugin-vue-jsx-virtual-267c6eb650/5/.yarn/berry/cache/@vitejs-plugin-vue-jsx-npm-3.1.0-d678ba9241-10c0.zip/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///Users/wangtong/Documents/GitHub/pybt-web/pybt-web/vite.config.ts";
var vite_config_default = defineConfig({
plugins: [vue(), vueJsx()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
}
},
server: {
port: 4e3,
proxy: {
// 选项写法
"/api": {
target: "http://127.0.0.1:10000",
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace("/api", "/api")
}
}
// hmr: {
// overlay: false
// },
// host: '0.0.0.0'
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc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