Skip to content

Commit 30f969f

Browse files
author
Nathan Reyes
committed
Add _redirects for netlify
1 parent e9f5843 commit 30f969f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build/webpack.prod.conf.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,14 @@ var webpackConfig = merge(baseWebpackConfig, {
9393
}),
9494
// copy custom static assets
9595
new CopyWebpackPlugin([
96+
{
97+
from: path.resolve(__dirname, '../static/_redirects'),
98+
to: config.build.assetsRoot
99+
},
96100
{
97101
from: path.resolve(__dirname, '../static'),
98102
to: config.build.assetsSubDirectory,
99-
ignore: ['.*']
103+
ignore: ['.*', '_redirects']
100104
}
101105
])
102106
]

static/_redirects

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

0 commit comments

Comments
 (0)