diff --git a/404.html b/404.html new file mode 100644 index 000000000..1b3c3c396 --- /dev/null +++ b/404.html @@ -0,0 +1,8 @@ + + + Not Found + + +

This Page Was Not Found

+ + diff --git a/_redirects b/_redirects new file mode 100644 index 000000000..623847945 --- /dev/null +++ b/_redirects @@ -0,0 +1,10 @@ +# Board Netlify Redirects File + +# Netlify docs: +# The redirects engine will process the first matching rule it +# finds, reading from top to bottom. Rules in the _redirects file +# are always processed first, followed by rules in the Netlify +# configuration file. + +/login /index.html 200! + diff --git a/script/netlify_build.sh b/script/netlify_build.sh index 9a7dc6892..42058a919 100755 --- a/script/netlify_build.sh +++ b/script/netlify_build.sh @@ -8,8 +8,12 @@ yarn run build2 echo "Copy test files into dist" cp -r test/* dist/ -echo "Copy netlify headers config into dist" +echo "Copy netlify configs into dist" cp _headers dist/ +cp _redirects dist/ + +echo "Copy netlify 404.html page into dist" +cp "404.html" dist/ echo "List files after build" find dist/