Categories
Mastering Development

My react app on heroku opens home page but will not open other pages

My react app runs fine locally, and deploys to heroku. However, from the home page, any link to another page shows a blank page with ‘not found’ on it. There are no other error messages. Here is my server-side package.json file: { “name”: “portfolio-generator”, “version”: “1.0.0”, “description”: “”, “main”: “server.js”, “engines”: { “node”: “12.16.x” }, […]

Categories
Development

React App is working locally but not rendering when deployed (Heroku, Shared Hosting and etc)

My app is working perfectly fine when I run it locally however when I deploy it to Heroku or shared hosting it shows only background image and contacts page. Those pages with MongoDB data are not rendering neither on Heroku or anywhere else. I have tried several things creating static.json and playing with package.json. So […]