Skip to content

Commit

Permalink
fix(console): fix dev mode with yarn start
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi committed Apr 4, 2024
1 parent 149595f commit c066fce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions console-minimal/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ module.exports = (_, args) => {
},
devServer: {
port: 3000,
static: outputPath,
historyApiFallback: true,
static: path.join(__dirname, 'public'),
historyApiFallback: {
// Needed to fallback to bundled index instead of public/index.html template
index: publicPath,
},
devMiddleware: { publicPath },
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use(bodyParser.json())
Expand Down
7 changes: 5 additions & 2 deletions console/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ module.exports = (_, args) => {
},
devServer: {
port: 3000,
static: outputPath,
historyApiFallback: true,
static: path.join(__dirname, 'public'),
historyApiFallback: {
// Needed to fallback to bundled index instead of public/index.html template
index: publicPath,
},
devMiddleware: { publicPath },
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use(bodyParser.json())
Expand Down

0 comments on commit c066fce

Please sign in to comment.