Skip to content

Commit 906155f

Browse files
committed
fix: add redirects to enable routing in hosting
1 parent 43171d6 commit 906155f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

webpack.production.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ const config = {
5656
{ from: 'src/assets/favicon.ico', to: 'favicon.ico' },
5757
{ from: 'src/assets/apple-touch-icon.png', to: 'apple-touch-icon.png' },
5858
{ from: 'src/assets/regular-icon.png', to: 'regular-icon.png' },
59-
{ from: 'src/assets/bmac-icon.png', to: 'bmac-icon.png' }
59+
{ from: 'src/assets/bmac-icon.png', to: 'bmac-icon.png' },
60+
{ from: './public/_redirects', to: './' }
6061
],
6162
}),
6263
new MiniCssExtractPlugin({

0 commit comments

Comments
 (0)