ice icon indicating copy to clipboard operation
ice copied to clipboard

icejs 2.6.10, proxy not work

Open antstudio-git opened this issue 1 year ago • 1 comments

Describe the bug

build.json

{ "publicPath": "/static/", "vite": true, "plugins": [ [ "build-plugin-ignore-style", { "libraryName": "antd" } ] ], "modeConfig": { "dev": { "publicPath": "./", "minify": false, "proxy": { "/**": { "enable": true, "target": "http://localhost:17310" } } } } }

Expected behavior

请求都访问proxy的target

Actual behavior

请求还是打到了localhost:3333, 找不到api

Version of ice.js

2.6.10

Content of build.json or ice.config.mts

No response

Additional context

No response

antstudio-git avatar Oct 21 '24 13:10 antstudio-git

默认直接使用了 webpack 的 proxy 能力,可以确认下

ClarkXia avatar Oct 22 '24 08:10 ClarkXia