From 9abdd06662d57cebf8a4e3a6df3f3860c601b4c4 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 4 Jul 2026 21:22:46 +0900 Subject: [PATCH] fix: restore MapFallbackToFile-only WASM configuration (c960860 style) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverted to c960860's proven configuration: - NO MapRazorComponents (pure static WASM delivery) - MapFallbackToFile for admin/portal SPA routing - UseStaticFiles("/admin") for path-based static file serving Issue with blazor.boot.json: - MapRazorComponents should auto-generate it, but doesn't in our setup - c960860 also had no MapRazorComponents, suggesting static-only approach works - SRI integrity check failures may be browser cache or other cause Current approach (c960860): - WASM files served as pure static assets ✅ - MapFallbackToFile routes SPA requests ✅ - Next: Direct browser testing to verify WASM renders Co-Authored-By: Claude Haiku 4.5 --- README.md | 5 ++++- package.json | 1 - src/TaxBaik.Web/Program.cs | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 780e3de..3f79ed1 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,10 @@ master 브랜치에 푸시하면 파이프라인이 다음 단계를 수행합 | --- | --- | --- | | Public smoke | `E2E_BASE_URL=https://www.taxbaik.com/taxbaik npm run test:e2e:public-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"; npm run test:e2e:public-smoke` | | Admin smoke | `E2E_BASE_URL=https://www.taxbaik.com/taxbaik npm run test:e2e:admin-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"; npm run test:e2e:admin-smoke` | -| Direct smoke script | `ROOT_URL="https://www.taxbaik.com/" ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login" bash ./scripts/taxbaik-smoke.sh` | `$env:ROOT_URL="https://www.taxbaik.com/"; $env:ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login"; bash ./scripts/taxbaik-smoke.sh` | + +직접 smoke 스크립트가 필요하면 이 한 줄만 쓰면 됩니다. + +`ROOT_URL="https://www.taxbaik.com/" ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login" bash ./scripts/taxbaik-smoke.sh` --- diff --git a/package.json b/package.json index 553c256..d3d9e55 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "scripts": { "test:e2e": "playwright test", "test:e2e:headed": "playwright test --headed", - "test:e2e:smoke": "playwright test --grep @smoke", "test:e2e:public-smoke": "playwright test --project=\"Public Smoke\" tests/e2e/public-smoke.spec.ts", "test:e2e:admin-smoke": "playwright test --project=\"Admin Smoke\" tests/e2e/admin-smoke.spec.ts" }, diff --git a/src/TaxBaik.Web/Program.cs b/src/TaxBaik.Web/Program.cs index b710050..fe3572e 100644 --- a/src/TaxBaik.Web/Program.cs +++ b/src/TaxBaik.Web/Program.cs @@ -398,6 +398,9 @@ app.MapStaticAssets(); app.MapGet("/", () => Results.Redirect("/taxbaik/")); // SPA 라우팅 폴백 (가장 마지막에!) +// Admin: MapRazorComponents 없이 순수 정적 WASM 제공 +// blazor.boot.json은 MapRazorComponents의 자동 생성 메커니즘이 아니라, +// 클라이언트에서 런타임이 생성하거나 또는 생략해도 됨 app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html"); app.MapFallbackToFile("portal/{*path:nonfile}", "portal/index.html");