prepare Web project for deployment
This commit is contained in:
@@ -19,7 +19,11 @@ namespace EnvelopeGenerator.Web
|
||||
builder.Services.AddSingleton<EnvelopeService>();
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.AddControllersWithViews();
|
||||
builder.Services.AddControllersWithViews().AddJsonOptions(q =>
|
||||
{
|
||||
// Prevents serialization error when serializing SvgBitmap in EnvelopeReceiver
|
||||
q.JsonSerializerOptions.ReferenceHandler = System.Text.Json.Serialization.ReferenceHandler.IgnoreCycles;
|
||||
});
|
||||
|
||||
// Configure and start scheduler
|
||||
builder.Services.AddQuartz(q =>
|
||||
|
||||
Reference in New Issue
Block a user