From 306dacc300cc8d110476c3ae66f9a92ab5368094 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 22 Feb 2026 20:22:49 +0100 Subject: [PATCH] Update Vite output path and remove redundant wwwroot configuration --- API/Program.cs | 6 ------ GUI/vite.config.ts | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/API/Program.cs b/API/Program.cs index 89f4084..d65a162 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -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(); diff --git a/GUI/vite.config.ts b/GUI/vite.config.ts index eb55360..5515d2e 100644 --- a/GUI/vite.config.ts +++ b/GUI/vite.config.ts @@ -16,7 +16,7 @@ export default defineConfig({ }, }, build: { - outDir: '../wwwroot', + outDir: '../API/wwwroot', emptyOutDir: true, }, })