I'm new to React and I build react apps using React + Vite app.
My projects run perfectly in development mode. I build an app using npm run build command. I get a 'dist' folder which is absolutely fine.
The problem is that when I deploy the dist folder in Cpanel I get a blank page on the webpage. No content is there inside <body> </body> of html when I inspect the page.
Why is this happening and how do I fix it?
help me :'(
index.htmlfile from thedistfolder look like? How are you hosting the JS and CSS files? This is generally an issue with paths for import so you want to look at the<link>and<script>elements in the<head>.