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