serve frontend from rails through protected route

This commit is contained in:
Bilal
2020-05-21 18:14:15 +02:00
parent aaa857a6e7
commit 5dbd2ec95d
5 changed files with 22 additions and 1 deletions

View File

@@ -1,4 +1,13 @@
{
"engines": {
"node": "10.15.3",
"yarn": "1.15.2"
},
"scripts": {
"build": "yarn --cwd client install && yarn --cwd client build",
"deploy": "cp -a client/build/. protected_public/",
"heroku-postbuild": "yarn build && yarn deploy"
},
"dependencies": {
"react-router-dom": "^5.0.1"
}