Skip to content

Commit 70b4baa

Browse files
committed
fix(vite/node): Cannot read properties of undefined: configure
1 parent 5a18284 commit 70b4baa

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/node/server/middlewares

1 file changed

+1
-1
lines changed

packages/vite/src/node/server/middlewares/proxy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function proxyMiddleware(
7171
}
7272
})
7373

74-
if (opts.configure) {
74+
if (opts && opts.configure) {
7575
opts.configure(proxy, opts)
7676
}
7777
// clone before saving because http-proxy mutates the options

0 commit comments

Comments
 (0)