Vite Subdirectory Deployment Checklist
When deploying Vite under a subdirectory, the build must know the public base path. Otherwise the HTML may request assets from the domain root instead of the deployed folder.
Required Vite config
Set the Vite base option to the deployed subdirectory so generated script and stylesheet URLs point to the right place.
Verify after build
Confirm dist/index.html asset URLs, navigation links, and direct subroutes all use the expected subdirectory path.
Browser verification
Open DevTools Network and confirm JS and CSS load from the deployed subdirectory, not the domain root.