Skip to content

Commit bed8e2d

Browse files
balzssclaude
andcommitted
chore: enable client-side routing in dev server
Added historyApiFallback to webpack dev server config to properly handle client-side routing. Without this, refreshing the page on non-root routes would return 404 errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 723ef9f commit bed8e2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/__docs__/webpack.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const config = merge(baseConfig, {
5656
directory: outputPath,
5757
},
5858
host: '0.0.0.0',
59+
historyApiFallback: true,
5960
client: {
6061
overlay: false,
6162
},

0 commit comments

Comments
 (0)