alibaba / alibaba/ice

icejs 2.6.10, proxy not work

Open
#7,004 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
18.6k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

Start with the build.json proxy configuration shown in the issue and inspect how ice.js 2.6.10 handles the dev mode proxy when Vite is enabled. Reproduce the request behavior against the configured target and verify that requests no longer fall back to localhost:3333.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.