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

fix: skip undefined proxy entry #9622

Merged
merged 7 commits into from
Aug 16, 2022
Prev Previous commit
Next Next commit
fix(vite/node): when the options[context] is undefined, return
  • Loading branch information
lbiceman committed Aug 16, 2022
commit 8f496ce2ef16782168bdd3f3154107cbc7b6dde0
1 change: 1 addition & 0 deletions packages/vite/src/node/server/middlewares/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export function proxyMiddleware(

Object.keys(options).forEach((context) => {
let opts = options[context]
// When opts is undefined, return
if (!opts) {
return
}
Expand Down