File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -369,12 +369,15 @@ module.exports = {
369
369
// lets you precisely control what bundle information gets displayed
370
370
371
371
[devServer](/configuration/dev-server): {
372
- contentBase: path.join(__dirname, 'public'), // boolean | string | array, static file location...
373
- compress: true, // gzip
372
+ proxy: { // proxy URLs to backend development server
373
+ '/api': 'http://localhost:3000'
374
+ },
375
+ contentBase: path.join(__dirname, 'public'), // boolean | string | array, static file location
376
+ compress: true, // enable gzip compression
374
377
historyApiFallback: true, // true for index.html upon 404, object for multiple paths
375
- hot: true, // hot module replacement. Depends on HotModuleReplacementPlugin
376
- https: false, //true for self-signed, object for cert authority
377
- noInfo: true // only errors & warns on hot reload
378
+ hot: true, // hot module replacement. Depends on HotModuleReplacementPlugin
379
+ https: false, // true for self-signed, object for cert authority
380
+ noInfo: true, // only errors & warns on hot reload
378
381
// ...
379
382
},
380
383
You can’t perform that action at this time.
0 commit comments