fix: configure Blazor WebAssembly admin UI and fix middleware pipeline
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m1s

- Add index.html entry point for WASM client
- Deploy 450+ WASM assembly files to wwwroot/admin
- Remove problematic UseBlazorFrameworkFiles middleware
- Fix static file serving for framework JS/WASM resources
- Update middleware ordering for proper static file handling
- Login page now loads and serves admin dashboard

Changes verified with server logs showing successful WASM file serving
at 200 status with proper gzip compression.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 11:12:48 +09:00
parent 65027c7862
commit c960860b3a
457 changed files with 1465 additions and 13 deletions
+12 -8
View File
@@ -3,17 +3,21 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TaxBaik - 관리자 대시보드</title> <title>TaxBaik Admin</title>
<!-- Admin SPA는 /admin/ 경로에서 호스팅 --> <base href="/taxbaik/admin/" />
<base href="/admin/" /> <link href="_framework/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link href="app.css" rel="stylesheet" />
<link rel="stylesheet" href="/css/admin.css" /> <link href="TaxBaik.Web.Client.styles.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet" />
</head> </head>
<body class="blazor-dark"> <body>
<div id="app"></div> <div id="app"></div>
<!-- Standalone Blazor WebAssembly --> <div id="blazor-error-ui">
<p>An unhandled exception has occurred. See browser console for details.</p>
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
<script src="_framework/blazor.webassembly.js"></script> <script src="_framework/blazor.webassembly.js"></script>
</body> </body>
</html> </html>
+1 -5
View File
@@ -366,11 +366,7 @@ catch (Exception ex)
app.UsePathBase("/taxbaik"); app.UsePathBase("/taxbaik");
app.UseResponseCompression(); app.UseResponseCompression();
// WASM 프레임워크 파일 (정적 파일 전에) // 정적 파일 제공 (WASM 프레임워크 파일 포함)
app.UseBlazorFrameworkFiles("/admin");
app.UseBlazorFrameworkFiles("/portal");
// 정적 파일 제공 (정적 경로별)
app.UseStaticFiles(); app.UseStaticFiles();
app.UseStaticFiles("/admin"); app.UseStaticFiles("/admin");
app.UseStaticFiles("/portal"); app.UseStaticFiles("/portal");

Some files were not shown because too many files have changed in this diff Show More