Fix proxying
This commit is contained in:
parent
47ebe1edc6
commit
0c6283d2fa
3 changed files with 98 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ module.exports = {
|
|||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'bundle.js',
|
||||
clean: true,
|
||||
publicPath: './',
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
||||
|
|
@ -31,6 +32,8 @@ module.exports = {
|
|||
],
|
||||
devServer: {
|
||||
port: 3000,
|
||||
allowedHosts: 'all',
|
||||
historyApiFallback: true,
|
||||
proxy: [
|
||||
{
|
||||
context: ['/api'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue