I have multiple folders in wwwroot and each folder has a web package (dist folder contents of VueJs/Angular/React App). As shown in the screenshot, I've created 2 folders and copied dist contents after building Vuejs application.
If I copy dist contents directly to the wwwroot folder for one App and navigate to localhost:5000/ then the app is being loaded properly. But with multiple folders and when I navigate to localhost:5000/page1/index.html then the browser console shows the following error
Failed to load resource: the server responded with a status of 404 (Not Found)
This is because the js and CSS folders are not loaded in the browser.
Below is my code in Startup.cs file.
app.UseStaticFiles();
app.UseFileServer(new FileServerOptions
{
EnableDirectoryBrowsing = true,
});
Can someone help me solve this?