Skip to content

Instantly share code, notes, and snippets.

@zenkbaries
Last active January 24, 2020 18:28
Show Gist options
  • Save zenkbaries/9ac3227ac823e5eac2ff81e1b451543b to your computer and use it in GitHub Desktop.
Save zenkbaries/9ac3227ac823e5eac2ff81e1b451543b to your computer and use it in GitHub Desktop.
Deploy React app to Heroku

To deploy React app, which was created using 'create-react-app --use-npm ', to Heroku, the following option need to be included:

heroku create <appname> --buildpack mars/create-react-app

If yo dont use those buildpack option, you might encounter Websocket error when opening the website using HTTPS instead of HTTP.

Information comes from https://create-react-app.dev/docs/deployment/#heroku

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment