the current build process sets the location of main.js to "/main.js", i recommend adding the following to the config in vite.config.js: base: "./". that way the path is set relative to the location of index.html, and you can upload it to a subdirectory on your web server