Added an example proxy route to webpack.config.js
This commit is contained in:
@@ -93,6 +93,12 @@ module.exports = ({ production, analyze }) => {
|
||||
},
|
||||
},
|
||||
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3000'
|
||||
}
|
||||
},
|
||||
|
||||
static: '/public'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user