I'm having trouble with an ASP.NET Core 8 MVC app with vite vue. My app runs locally in which I mound in a cshtml div id= app all the vue components.
Locally the vite server runs and everything is fine. I also use vite.aspnetcore nuget package.
However when I publish my app to IIS, I get so many missed 404 js and css files (I can only see the main.js) but they do exist in my wwwroot folder.
The vite build is configured to build all the assets in wwwroot with a manifest.json which it does but again 404 in published web app.
What to do here, please?