mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 00:11:10 +00:00
Adds 404 NotFound page
This commit is contained in:
1 parent
291c0768a5
commit
b3ed6d1bb8
17 files changed
+1386
-3
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user