Adds 404 NotFound page

This commit is contained in:
BinaryAlley committed 2025-01-10 19:08:37 +02:00
1 parent 291c0768a5
commit b3ed6d1bb8
17 files changed
+1386 -3

No files matched your search

+2 -1
View File
@@ -62,13 +62,14 @@ public class Program
WebApplication app = builder.Build();
app.UseNotFoundRedirect();
app.UseRequestLocalization();
app.UseSerilogRequestLogging();
// configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment() && Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") != "true")
{
app.UseExceptionHandler("/Home/Error");
app.UseExceptionHandler("/home/error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}