Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icejs 2.6.10, proxy not work #7004

Open
antstudio-git opened this issue Oct 21, 2024 · 1 comment
Open

icejs 2.6.10, proxy not work #7004

antstudio-git opened this issue Oct 21, 2024 · 1 comment
Labels

Comments

@antstudio-git
Copy link

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

@ClarkXia
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants