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