Deploying React apps in RStudio Connect


Apologies if this isn't the best place to ask, but I tried to google this topic unsuccessfully.

Does anyone has any experience deploying React apps in RStudio Connect?

It should be possible as static content, however nothing renders when I deploy the example coming with "create-react-app"... There are some resources that are "blocked due to MIME type".

I am quite new to this topic (React), so any information can be helpful. THanks!

This is really interesting!! Do you have a hello-world react app to reference that is just static HTML / JavaScript? I am not very familiar with React, personally, but I do like to play with deploying crazy static content to Connect :smile:

Also, is your Connect server behind a proxy, perhaps?

Hi @cole,

I fixed it. I forgot to add the content url to "homepage" in the package.json before building it, therefore the blank page.

So, to answer your question, I used the default application created by create-react-app. It's pretty straightforward:
Then it is just a matter of:

  1. pointing to the right content URL in package.json (here's a ref:
  2. build the application
  3. deploy the build folder in RStudio Connect as a static page.

Funny that we have this similar hobby... We should make a club :smiley:

1 Like