配置: 调整开发API基础URL为相对路径并为Vite开发服务器启用所有主机监听和Docker文件轮询。

This commit is contained in:
2026-01-31 12:33:05 +08:00
parent 616f079c4b
commit 4199c9f98d
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
VITE_API_BASE_URL=https://bk.swalktech.top/api/v1 VITE_API_BASE_URL=/api/v1

View File

@@ -16,5 +16,9 @@ export default defineConfig({
}, },
server: { server: {
port: 2613, port: 2613,
host: true, // Listen on all addresses
watch: {
usePolling: true, // Necessary for Docker on Windows
},
}, },
}); });