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) =>
|
app.Use(async (context, next) =>
|
||||||
{
|
{
|
||||||
var path = context.Request.Path.Value ?? string.Empty;
|
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;
|
context.Response.StatusCode = StatusCodes.Status204NoContent;
|
||||||
return;
|
return;
|
||||||
@@ -429,8 +430,10 @@ export default { get };
|
|||||||
|
|
||||||
app.UseResponseCompression();
|
app.UseResponseCompression();
|
||||||
|
|
||||||
// HotReload 미들웨어 (개발 모드에서만)
|
// WASM 디버깅/Hot Reload는 명시적으로 켠 경우에만 주입한다.
|
||||||
if (app.Environment.IsDevelopment())
|
// 기본값을 꺼두면 테스트/개발 서비스에서 불필요한 _framework 핫리로드 번들 404를 막을 수 있다.
|
||||||
|
var enableWebAssemblyDebugging = builder.Configuration.GetValue<bool>("EnableWebAssemblyDebugging");
|
||||||
|
if (app.Environment.IsDevelopment() && enableWebAssemblyDebugging)
|
||||||
{
|
{
|
||||||
app.UseWebAssemblyDebugging();
|
app.UseWebAssemblyDebugging();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>TaxBaik Admin</title>
|
<title>TaxBaik Admin</title>
|
||||||
<base href="/admin/" />
|
<base href="/admin/" />
|
||||||
<link href="_framework/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
<link href="css/admin.css" rel="stylesheet" />
|
||||||
<link href="app.css" rel="stylesheet" />
|
|
||||||
<link href="TaxBaik.Web.Client.styles.css" rel="stylesheet" />
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user