- Change the
.env
file:
FRONTENDPOINT=yourproductionendpointforthefrontend(netlify)
- Initialize git, commit your changes and push to heroku:
$ git init
$ git add .
$ git commit -m 'Finally'
$ heroku create thenameofyourproject
$ git push heroku master
- Done!
- Go to your frontend directory and run the next command:
$ yarn build
- Go to the
build
directory and create the_redirects
file:
$ cd build/
$ touch _redirects
- Write the next line in the
_redirects
file:
/* /index.html 200