How to deploy a Typescript React App (Create React App) on Heroku?

Viewed 612

I can't find a good source online, everywhere they only talk about NodeJS with TS. What should I do? The best would be to have it step by step. I already have a React app written in Typescript, I just want to deploy it on Heroku, thanks <3.

2 Answers

Can you please try to add react build-pack for Heroku deployment? Please follow the below steps to configure the Heroku app.

1). npx create-react-app $APP_NAME --template typescript

2). Install heroku cli from heroku installation doc

3). heroku login

4). heroku create $APP_NAME --buildpack mars/create-react-app

5). git push heroku master

6). heroku open

How to deploy and setup react build pack for Heroku doc

Related