Commit 2f53f157 authored by KesaubeEire's avatar KesaubeEire

feat: 开发服务器可以在局域网中调用 DEBUG.

parent 11982012
...@@ -12,6 +12,7 @@ export default defineConfig({ ...@@ -12,6 +12,7 @@ export default defineConfig({
key: "APP_ENV", key: "APP_ENV",
}), }),
], ],
// 代理服务器, 开发用, 将 target 改为你的浏览器内能访问到 rrpg.duels.link 的链接
server: { server: {
proxy: { proxy: {
"/api/": { "/api/": {
...@@ -20,5 +21,7 @@ export default defineConfig({ ...@@ -20,5 +21,7 @@ export default defineConfig({
rewrite: (path) => path.replace(/^\/api/, ""), rewrite: (path) => path.replace(/^\/api/, ""),
}, },
}, },
// 局域网中暴露, 方便手机测试
host: '0.0.0.0'
}, },
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment