Move web host closer to razor-only routing
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m0s
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m0s
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user