refactor: optimize blazor hot-reload path check and WebAssembly debugging configuration, update admin index.html stylesheet link
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m18s
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m18s
This commit is contained in:
@@ -407,7 +407,8 @@ catch (Exception ex)
|
||||
app.Use(async (context, next) =>
|
||||
{
|
||||
var path = context.Request.Path.Value ?? string.Empty;
|
||||
if (path.Equals("/_framework/blazor-hotreload", StringComparison.OrdinalIgnoreCase))
|
||||
if (path.Equals("/_framework/blazor-hotreload", StringComparison.OrdinalIgnoreCase) ||
|
||||
path.Equals("/admin/_framework/blazor-hotreload", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
context.Response.StatusCode = StatusCodes.Status204NoContent;
|
||||
return;
|
||||
@@ -429,8 +430,10 @@ export default { get };
|
||||
|
||||
app.UseResponseCompression();
|
||||
|
||||
// HotReload 미들웨어 (개발 모드에서만)
|
||||
if (app.Environment.IsDevelopment())
|
||||
// WASM 디버깅/Hot Reload는 명시적으로 켠 경우에만 주입한다.
|
||||
// 기본값을 꺼두면 테스트/개발 서비스에서 불필요한 _framework 핫리로드 번들 404를 막을 수 있다.
|
||||
var enableWebAssemblyDebugging = builder.Configuration.GetValue<bool>("EnableWebAssemblyDebugging");
|
||||
if (app.Environment.IsDevelopment() && enableWebAssemblyDebugging)
|
||||
{
|
||||
app.UseWebAssemblyDebugging();
|
||||
}
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>TaxBaik Admin</title>
|
||||
<base href="/admin/" />
|
||||
<link href="_framework/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="app.css" rel="stylesheet" />
|
||||
<link href="TaxBaik.Web.Client.styles.css" rel="stylesheet" />
|
||||
<link href="css/admin.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user