Setting environment variables for .NET API

Hi, i’m trying to host my first dotnet api and i’m having some trouble. I’m trying to figure out how to set the secrets/environment variables for my project.
I come from a node background and env variables were pretty easy, just a key pair values that represent the same thing in the env file.
But bc it’s json in dotnet i have no idea how to go about it.
Do i need to change anything in the appsettings.json and the program.cs?

Sorry if it’s too dumb of a question and thanks in advance.

From How To to Questions / Help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.