Skip to content

Commit e94b979

Browse files
committed
🐛 Handle config without pluginOptions defined
1 parent 22d823f commit e94b979

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var proxy = require('http-proxy-middleware');
22

33
module.exports = (api, options) => {
4+
if (options.pluginOptions === undefined) return;
45
const opts = options.pluginOptions.proxy;
56

67
if (opts && (opts.enabled === undefined || opts.enabled)) {

0 commit comments

Comments
 (0)