Fix proxying

This commit is contained in:
Andras Schmelczer 2026-01-26 19:57:08 +00:00
parent 47ebe1edc6
commit 0c6283d2fa
3 changed files with 98 additions and 1 deletions

View file

@ -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'],