Relative Content

Tag Archive for reactjsweb-hostingplesk

Why is my index.html from my React project not loading on Plesk?

I am using Plesk Obsidian to host a static React app made with create-react-app, not using React Router. The site works when I do npm run build and upload the files in the build folder to httpdocs. However, it doesn’t work when I use the Git option to upload files – currently displays a blank page. In the console tab of developer tools, no errors or messages appear. In the network tab, it seems like most of the resources load EXCEPT index.html is absent.
In the Node.js options, I have options set like this:
Document Root: /httpdocs/public
Application Mode: production
Application Root: /httpdocs
Application Startup File: public/index.html