Replies: 1 comment
-
hello! have you find the solution? have the same issue |
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
-
I recently shifted my react website from CRA to Vite to enjoy to faster builds. Everything is working well except vite is not serving files from public directory in production instead it redirects to 404 page of react app. It work fine in dev.
I am using:
Vite: 2.9.13
React: 18.2.0
Expected Behaviour:
https://movielust.in/images/logo.png Should return a png image.
Actual behaviour:
https://movielust.in/images/logo.png Return a 404 page from react app.
Directory structure:
Here is my
vite.config.js
:I don't if this is a bug or problem that I created so please let me know any solution anyone knows.
Beta Was this translation helpful? Give feedback.
All reactions