b300cd7a59
- 모든 빌드 오류 해결 (PageModel, Blazor, ResponseCompression) - Admin 컴포넌트 MudBlazor 6.x 호환성 확보 - IBlogPostRepository 메서드 통일 - ResponseCompression gzip 활성화 W0~W6 전체 작업 완료: ✅ 프로젝트 기반 구축 ✅ LLM 개발 지침 (CLAUDE.md) ✅ 도메인/인프라/서비스 레이어 ✅ 공개 홈페이지 (Razor Pages SSR) ✅ 관리자 백오피스 (Blazor Server + MudBlazor) ✅ CSS 디자인 시스템 + 모바일 UX ✅ 초기 데이터 + 블로그 포스트 5개 다음 단계: 서버 배포 (Gitea CI/CD) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
32 lines
696 B
C#
32 lines
696 B
C#
using System.IO.Compression;
|
|
using Microsoft.AspNetCore.ResponseCompression;
|
|
using TaxBaik.Application;
|
|
using TaxBaik.Infrastructure;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Services.AddRazorPages();
|
|
builder.Services.AddMemoryCache();
|
|
builder.Services.AddResponseCompression(opts => {
|
|
opts.Providers.Add<GzipCompressionProvider>();
|
|
});
|
|
builder.Services.AddInfrastructure();
|
|
builder.Services.AddApplication();
|
|
|
|
var app = builder.Build();
|
|
|
|
app.UsePathBase("/taxbaik");
|
|
app.UseResponseCompression();
|
|
app.UseStaticFiles();
|
|
app.UseRouting();
|
|
|
|
if (!app.Environment.IsDevelopment())
|
|
{
|
|
app.UseExceptionHandler("/Error");
|
|
app.UseHsts();
|
|
}
|
|
|
|
app.MapRazorPages();
|
|
|
|
app.Run();
|