Public directory is accessible via root and public directory under pathes "/" and "/public" #18654
lennartfricke
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the following stackblitz example. You can see an image accessed via both pathes:
https://stackblitz.com/edit/vitejs-vite-zelbjg?file=index.html
Is this intended behavior? It can lead to surprises after build because then the access via "root" to "/public" is gone.
I would like to thank you for vite. I really enjoy using it and stumbled over this.
Beta Was this translation helpful? Give feedback.
All reactions