When refreshing the mounted static files of react app, it is giving 404 error, by calling the frontend url to the backend #11502
Unanswered
phanitallapudi
asked this question in
Questions
Replies: 1 comment
-
Provide a minimally reproducible example and someone might be able to give you some help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I mounted the react dist folder to my fastapi service, when I try to reload the frontend page, it is calling the frontend endpoint to the backend service like this
"INFO: 127.0.0.1:55563 - "GET /dashboard HTTP/1.1" 404 Not Found"
/dashboard is the endpoint of frontend, I need to follow the flow of the application to not get any issues, but when I try to refresh the page it is giving 404 error for all pages
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.110.2
Pydantic Version
2.7.1
Python Version
Python 3.11.5
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions