Handle frontend route in Netlify (#46)

* Add Netlify route

* Add route handling to netlify
This commit is contained in:
Chi Kei Chan 2018-10-17 03:42:41 -07:00 committed by GitHub
parent c465d2d0d8
commit c691cfabe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

@ -35,7 +35,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "react-scripts build && cp build/index.html build/404.html",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"deploy": "npm run build&&gh-pages -d build"

1
public/_redirect Normal file

@ -0,0 +1 @@
/* /index.html 200