Hey, guys!
I created an App with intagration with my github repository. I have a backend in NestJs and a frontend in React and Vite.
I have no problem to access my backend, but in frontend, apparently it’s run with no problem but when I tried to access, the page shows nothing and the console shows the erros:
client:1 Failed to load resource: the server responded with a status of 404 ()
main.tsx:1 Failed to load resource: the server responded with a status of 404 ()
@react-refresh:1 Failed to load resource: the server responded with a status of 404 ()
logo.png:1 Failed to load resource: the server responded with a status of 404 ()
Anyone here had this problem? Can you help me?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya
Here are some steps and considerations to help you troubleshoot and resolve this issue, they are a bit too broad but can help to further pinpoint the source.
Check the Build Configuration:
package.json
has the correct build script for Vite and React.Verify the Output Directory:
dist
directory, but this can be customized.Inspect Base URL and Public Path Settings:
base
config option invite.config.js
determines the base path for the project. If your app is not served from the root URL, you need to set this appropriately.logo.png
) are correctly pointing to the paths where these assets are served.Review Static Files and Routing:
index.html
file).Examine Logs and Deployment Details:
Test Locally: