Added an example proxy route to webpack.config.js

This commit is contained in:
2021-12-20 07:33:01 +00:00
parent d37b93d5f7
commit c130b74e2d
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -93,6 +93,12 @@ module.exports = ({ production, analyze }) => {
},
},
proxy: {
'/api': {
target: 'http://localhost:3000'
}
},
static: '/public'
}
}