If it doesn’t work locally, it won’t work on Netlify.
The issue is solved! I set the base to ‘/’ and had to make sure that the base_path could handle a path that can have a slash at the end
Vite base
defaults to /
. Setting it to /
does nothing.
Thanks! Deleted it from the vite.config file