DEV Community

Cover image for Deploying a React Application to Production: A Comprehensive Guide

Deploying a React Application to Production: A Comprehensive Guide

Vishal Yadav on July 04, 2024

In the world of web development, deploying a React application to production is a crucial step in making your application available to users. There...
Collapse
 
shazin profile image
Shazin

React app's build output is just html, css, JavaScript you don't need to install the whole dependencies for deploying it to vps.

Collapse
 
vyan profile image
Vishal Yadav

yes

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

No you don't, you just need the statics that the builder outputs

Collapse
 
kurealnum profile image
Oscar

Hey, this article appears to have been generated with the assistance of ChatGPT or possibly some other AI tool.

We allow our community members to use AI assistance when writing articles as long as they abide by our guidelines. Please review the guidelines and edit your post to add a disclaimer.

We hope you understand and take care to follow our guidelines going forward.

Collapse
 
abbaraees profile image
Muhammad Lawal

I believe Netlify is also worth considering because it provides services similar to Vercel.

Collapse
 
charitha_waravita profile image
Charitha Waravita

Absolutely !👍

Collapse
 
vyan profile image
Vishal Yadav

Yes

Collapse
 
polterguy profile image
Thomas Hansen

What challenges have you faced while deploying React applications to production, and how did you overcome them?

Collapse
 
vyan profile image
Vishal Yadav

During Deployment , I faced quite issue like CORS , to overcome that i done research on base level to resolve that problem.

Collapse
 
philipjc profile image
Philip J Cox

Deploying and managing full images for a Kubernetes approach soon becomes cumbersome and overkill. I’d prefer to remove the dependency of node in a secure infrastructure and host static assets from a secure bucket or such. Leverage GitHub Actions as much as possible. I prefer to remove as much dependency as possible.

Collapse
 
vsamma profile image
Veiko Samma

I’m sorry but how is this article “comprehensive”?

It very basically and barely describes a few deployment options but it is far from something that is related to the effort of actually putting a web app to production.

Deployment is one thing but for production you would need to consider a lot of things inside the application’s configuration, ie env settings, optimisations, source maps, caches, logging, monitoring, load balancing, dns settings, gateways and million other things.
These types of basic and very superficial articles are not providing any value for people who ACTUALLY need practical help with publishing their first production apps.

Collapse
 
jamstra profile image
Jam Straw

good info.

Collapse
 
vyan profile image
Vishal Yadav

Thanks!

Collapse
 
akash32755 profile image
Akash Yadav

It is nice 👍

Collapse
 
vyan profile image
Vishal Yadav

Thanks!

Collapse
 
ravindra_sannidhi_ff86c24 profile image
Ravindra Sannidhi

Why do we need kubernetes for frontend applications

Collapse
 
abrahamn profile image
Info Comment hidden by post author - thread only accessible via permalink
Abraham

While very informative, this appears generated by AI. Answers a question we had nonetheless :)

Collapse
 
andremantas profile image
Info Comment hidden by post author - thread only accessible via permalink
André Mantas

The amount of AI generated articles is over the roof...

Collapse
 
foxonthe1 profile image
Info Comment hidden by post author - thread only accessible via permalink
Fox Scarlett

AI

Collapse
 
charitha_waravita profile image
Charitha Waravita

++ Netlify 👍🌿

Collapse
 
vyan profile image
Vishal Yadav

Yeah

Collapse
 
mia_luna_2674ffd0e985af4b profile image
Mia Luna

This is very helpful for

Some comments have been hidden by the post's author - find out more