Skip to content

Commit

Permalink
fix(vite/node): Cannot read properties of undefined: configure
Browse files Browse the repository at this point in the history
  • Loading branch information
lbiceman committed Aug 11, 2022
1 parent 5a18284 commit 70b4baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/middlewares/proxy.ts
Expand Up @@ -71,7 +71,7 @@ export function proxyMiddleware(
}
})

if (opts.configure) {
if (opts && opts.configure) {
opts.configure(proxy, opts)
}
// clone before saving because http-proxy mutates the options
Expand Down

0 comments on commit 70b4baa

Please sign in to comment.