update
This commit is contained in:
@@ -44,8 +44,8 @@ export default defineConfig({
|
||||
port: 16801,
|
||||
proxy: {
|
||||
// Frontend uses /modelTF and proxies to the local five-digit backend port.
|
||||
// 后端跑在 WSL2(networkingMode=mirrored)里,uvicorn 必须以
|
||||
// --host 0.0.0.0 启动,Windows 的 localhost 才能到达它。详见 UI测试手册第 0 节。
|
||||
// 后端跑在 WSL2 默认(NAT)网络下,Windows 的 localhost 经 localhostForwarding 转发到 WSL;
|
||||
// 后端以 --host 0.0.0.0 启动即可。不要用 networkingMode=mirrored(本机镜像回环对 WSL 服务失效)。
|
||||
'/modelTF': {
|
||||
target: 'http://localhost:17861',
|
||||
changeOrigin: true,
|
||||
|
||||
Reference in New Issue
Block a user