'Vite not using cache path from config all time (403)

I have a problem with using Vite, because webserver I'm using (nginx) somewhy can't work with paths that have dots in it. Creating symlink to node_modules/.vite/ as node_modules/_vite/ or changing cache path in vite.config.js works, but it tries to use node_modules/.vite path again, tried modifying library source files but no result.

URL: https://zeronet.space/

screenshot of devtools

(EDIT: Already tried changing permissions chmod -R 0777 node_modules/.vite, not works)

(UPDATE: Everything works when visiting website from Google Chrome, but https://zeronet.space/node_modules/.vite/preact.js is still not available (gives 403), so website not works correctly only in Mozilla Firefox)

(UPDATED SCREENSHOTS) Chrome DevTools:Chrome DevTools Firefox DevTools:Firefox DevTools



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source