From 9286043f249964856bddc38ecb23a5e9631ac23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Thu, 20 Jun 2024 13:45:23 +0200 Subject: [PATCH] Fixed redirects for dev server and live site --- packages/frontend/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frontend/webpack.config.js b/packages/frontend/webpack.config.js index 776916d64..8dc9328fd 100644 --- a/packages/frontend/webpack.config.js +++ b/packages/frontend/webpack.config.js @@ -15,6 +15,7 @@ module.exports = (env) => { devtool: mode === "development" ? "source-map" : false, plugins: [ new HtmlWebpackPlugin({ + base: "/", template: "./src/html/index.html", }), new MiniCssExtractPlugin(), @@ -61,6 +62,9 @@ module.exports = (env) => { filename: "[name].[contenthash:8].js", crossOriginLoading: "anonymous", }, + devServer: { + historyApiFallback: true, + }, optimization: { minimize: mode === "production", minimizer: [