Fix admin WASM bootstrap and dashboard render
TaxBaik CI/CD / build-and-deploy (push) Successful in 6m10s

This commit is contained in:
2026-07-08 01:45:55 +09:00
parent f2f4769460
commit 8bd100707a
5 changed files with 13 additions and 62 deletions
+9 -3
View File
@@ -15,8 +15,8 @@ const files = [
const required = [
{
file: 'src/TaxBaik.Web/Program.cs',
pattern: 'MapGroup("/taxbaik/admin")',
message: '관리자 Razor Components는 /taxbaik/admin 그룹에만 매핑되어야 합니다.'
pattern: 'app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");',
message: '관리자 SPA 폴백은 admin/index.html로만 연결되어야 합니다.'
},
{
file: 'tests/e2e/route-isolation.spec.ts',
@@ -48,12 +48,18 @@ const adminFiles = files
for (const file of adminFiles) {
const fullPath = path.join(root, file);
const text = fs.readFileSync(fullPath, 'utf8');
if (file === 'src/TaxBaik.Web/Program.cs') continue;
if (text.includes('ToBaseRelativePath(Navigation.Uri)')) {
console.error(`[route-lint] FAIL ${file}: unsafe ToBaseRelativePath(Navigation.Uri) usage detected.`);
failed = true;
}
if (file === 'src/TaxBaik.Web.Client/Components/Admin/App.razor') {
if (text.includes('<html') || text.includes('<body') || text.includes('blazor.webassembly.js')) {
console.error('[route-lint] FAIL App.razor: host HTML or Blazor bootstrap script must not live in the root component.');
failed = true;
}
}
}
if (failed) process.exit(1);