Hey right now im trying to deploy my mern app on an ec2 instance and I'm getting a weird issue. When i deploy it and I go to my public ip that was given from the ec2 instance I get a blank page instead of my react app. Has anyone experience this before? Like is it something to do with my configuration or anything? I used a youtube video as a tutorial haha
You don't need an EC2 to host a React app. AWS S3 and AWS CloudFront is a cheaper and preferred solution, once you won't have to deal with servers, reverse proxy configurations or anything else.
Try a hello world html without any react. It smells like a missing JS import/ missing script to include react of sorts. Take a look at the web browser console if you see any errors.
I figured it out it was because of some npm packages that I had in production got all fucked up so I had to delete some of them... im such a noob lol
This comment was deleted 4 years ago
Thanks haha I ended up figuring it out but I'll definitely look into that later though
This comment was deleted 6 years ago
wow I love this response haha I ended up getting it working but thanks for your comment.. you look like you have a lot of experience in this I appreciate the help
This comment was deleted 3 years ago
but i mean i have a react app and a node app... rn i think my react app is the one thats giving me problems because I'm able to see the connection to the mongo db on mongo atlas and everything..... idk i think im fine in the node department haha