Move web host closer to razor-only routing
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m0s

This commit is contained in:
2026-07-09 12:30:36 +09:00
parent b8624efb81
commit 117dd457c2
3 changed files with 7 additions and 15 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ const files = [
const required = [
{
file: 'src/TaxBaik.Web/Program.cs',
pattern: 'app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");',
message: '관리자 SPA 폴백은 admin/index.html로만 연결되어야 합니다.'
pattern: 'app.MapRazorPages();',
message: '관리자 화면은 Razor Pages 라우팅을 사용해야 합니다.'
},
{
file: 'tests/e2e/route-isolation.spec.ts',
+1 -9
View File
@@ -11,7 +11,6 @@ using Microsoft.AspNetCore.ResponseCompression;
using MudBlazor.Services;
using Serilog;
using FluentValidation;
using FastEndpoints;
using System.Threading.RateLimiting;
using TaxBaik.Application;
using TaxBaik.Application.Services;
@@ -240,7 +239,6 @@ builder.Services.AddSingleton(HtmlEncoder.Create(UnicodeRanges.All));
builder.Services.AddInfrastructure();
builder.Services.AddApplication();
builder.Services.AddValidatorsFromAssemblyContaining<TaxBaik.Application.DTOs.CreateBlogPostDtoValidator>();
builder.Services.AddValidatorsFromAssemblyContaining<TaxBaik.Web.Endpoints.Announcement.AnnouncementDtoValidator>();
builder.Services.AddScoped<IInquiryNotificationService, TelegramInquiryNotificationService>();
builder.Services.AddScoped<TaxBaik.Web.Services.SitemapValidationService>();
@@ -360,17 +358,11 @@ app.UseAuthentication();
app.UseAuthorization();
app.UseAntiforgery();
// API + Razor Pages + 정적 자산 매핑
app.MapControllers();
app.MapFastEndpoints();
// Razor Pages + 정적 자산 매핑
app.MapHealthChecks("/healthz");
app.MapRazorPages(); // Sitemap.cshtml, Rss.cshtml, Feed.cshtml
app.MapStaticAssets();
// SPA 라우팅 폴백
app.MapFallbackToFile("admin/{*path:nonfile}", "admin/index.html");
app.MapFallbackToFile("portal/{*path:nonfile}", "portal/index.html");
// 애플리케이션 시작/종료 로깅
try
{
+4 -4
View File
@@ -22,14 +22,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FastEndpoints" Version="5.30.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.9" />
<PackageReference Include="MudBlazor" Version="9.6.0" />
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="10.0.9" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.19.1" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.9" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.11.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
@@ -37,4 +33,8 @@
<PackageReference Include="Markdig" Version="0.38.0" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Endpoints\**\*.cs" />
</ItemGroup>
</Project>