It sounds like you may need to make sure that the vite.config.js file is being included in your build. This file is used by Vite to generate the manifest file that is needed for the build. You can check to make sure that the file is included in your build by running npm run build and checking the output for the vite.config.js file. If it is not included, you can add it to your build by adding the following line to your package.json file:
"scripts": {
"build": "vite build && cp vite.config.js dist/vite.config.js"
}
This will copy the vite.config.js file to the dist folder when you run npm run build.