- Change the
.envfile:
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
builddirectory and create the_redirectsfile:
$ cd build/
$ touch _redirects- Write the next line in the
_redirectsfile:
/* /index.html 200