Added DotEnv package and example.env file
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
using System.Data;
|
||||
using dotenv.net;
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
using Newtonsoft.Json;
|
||||
using PdfService;
|
||||
|
||||
DotEnv.Load();
|
||||
|
||||
SentrySdk.Init(options =>
|
||||
{
|
||||
options.Dsn = Environment.GetEnvironmentVariable("SENTRY_DSN");
|
||||
});
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user