We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22d823f + 3e30868 commit 40b2d52Copy full SHA for 40b2d52
index.js
@@ -1,7 +1,7 @@
1
var proxy = require('http-proxy-middleware');
2
3
module.exports = (api, options) => {
4
- const opts = options.pluginOptions.proxy;
+ const opts = options.pluginOptions && options.pluginOptions.proxy;
5
6
if (opts && (opts.enabled === undefined || opts.enabled)) {
7
api.configureDevServer((app) => {
0 commit comments