diff --git a/OliverBooth/OliverBooth.csproj b/OliverBooth/OliverBooth.csproj index 760a26f..13558d6 100644 --- a/OliverBooth/OliverBooth.csproj +++ b/OliverBooth/OliverBooth.csproj @@ -14,6 +14,7 @@ + diff --git a/OliverBooth/Program.cs b/OliverBooth/Program.cs index 2a9bff7..f244e99 100644 --- a/OliverBooth/Program.cs +++ b/OliverBooth/Program.cs @@ -1,6 +1,6 @@ WebApplicationBuilder builder = WebApplication.CreateBuilder(args); -builder.Services.AddRazorPages(); +builder.Services.AddRazorPages().AddRazorRuntimeCompilation(); builder.Services.AddControllersWithViews(); builder.Services.AddRouting(options => options.LowercaseUrls = true);