fix
This commit is contained in:
parent
a78c1e63db
commit
b101658023
@ -4,11 +4,11 @@ import uni from "@dcloudio/vite-plugin-uni";
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
server: {
|
||||
// 选项写法
|
||||
'/': {
|
||||
target: import.meta.env.VITE_API_URL, // 目标地址
|
||||
changeOrigin: true,
|
||||
},
|
||||
// 选项写法
|
||||
"/": {
|
||||
target: process.env.VITE_API_URL, // 目标地址
|
||||
changeOrigin: true,
|
||||
},
|
||||
host: "0.0.0.0", // 这个用于启动
|
||||
port: 8093, // 指定启动端口
|
||||
open: true, //启动后是否自动打开浏览器
|
||||
|
Loading…
Reference in New Issue
Block a user