Update Vite output path and remove redundant wwwroot configuration

This commit is contained in:
2026-02-22 20:22:49 +01:00
committed by Jonas
parent afa14d07c6
commit 306dacc300
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -1,11 +1,5 @@
var builder = WebApplication.CreateBuilder(args);
// Serve frontend from wwwroot at solution root
var webRootPath = Path.GetFullPath(Path.Combine(builder.Environment.ContentRootPath, "..", "wwwroot"));
Directory.CreateDirectory(webRootPath);
builder.Environment.WebRootPath = webRootPath;
builder.WebHost.UseWebRoot(webRootPath);
// Add services to the container.
builder.Services.AddControllers();
+1 -1
View File
@@ -16,7 +16,7 @@ export default defineConfig({
},
},
build: {
outDir: '../wwwroot',
outDir: '../API/wwwroot',
emptyOutDir: true,
},
})