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, }, })