Added DotEnv package and example.env file
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="dotenv.net" Version="4.0.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Stimulsoft.Reports.Engine.NetCore" Version="2025.2.3" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
1
PdfService/example.env
Normal file
1
PdfService/example.env
Normal file
@@ -0,0 +1 @@
|
||||
SENTRY_DSN=https://d3fd87d14e555556d3f76e42d94a63a0@sentry.rayvarz.center/10
|
||||
Reference in New Issue
Block a user