This commit is contained in:
@@ -394,10 +394,9 @@ app.MapHealthChecks("/healthz");
|
|||||||
app.MapRazorPages(); // Sitemap.cshtml, Rss.cshtml, Feed.cshtml
|
app.MapRazorPages(); // Sitemap.cshtml, Rss.cshtml, Feed.cshtml
|
||||||
app.MapStaticAssets();
|
app.MapStaticAssets();
|
||||||
|
|
||||||
// 루트 경로 기본값
|
// SPA 라우팅 폴백 (MapFallbackToFile만 사용 - 순수 정적 WASM)
|
||||||
app.MapGet("/", () => Results.Redirect("/taxbaik/"));
|
// MapFallbackToFile로 index.html을 serve하면 WASM이 클라이언트에서 직접 부팅됨
|
||||||
|
// index.html의 <script src="_framework/blazor.webassembly.js">로 자동 초기화
|
||||||
// SPA 라우팅 폴백 (가장 마지막에!)
|
|
||||||
app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");
|
app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");
|
||||||
app.MapFallbackToFile("portal/{*path:nonfile}", "portal/index.html");
|
app.MapFallbackToFile("portal/{*path:nonfile}", "portal/index.html");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user