We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a779553 commit b73b816Copy full SHA for b73b816
2 files changed
PlotSystem-API/PlotSystem-API.csproj
@@ -8,6 +8,7 @@
8
</PropertyGroup>
9
10
<ItemGroup>
11
+ <PackageReference Include="dotenv.net" Version="4.0.0" />
12
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.3">
13
<PrivateAssets>all</PrivateAssets>
14
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
PlotSystem-API/Program.cs
@@ -1,8 +1,11 @@
1
+using dotenv.net;
2
using Microsoft.EntityFrameworkCore;
3
using PlotSystem_API;
4
using PlotSystem_API.Models;
5
using PlotSystem_API.Services;
6
7
+DotEnv.Load(); // Load environment variables from .env file
+
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddCors(options =>
0 commit comments