Added DotEnv package and example.env file

This commit is contained in:
2025-12-31 17:38:21 +03:30
parent df405dc69c
commit f764776321
3 changed files with 10 additions and 0 deletions

View File

@@ -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();