C
C#10mo ago
Elmulinho14

How to handle different environments in a C# repo?

I have a github repo that has 3 different environments (dev, preprod, prod), and the difference is mainly in my appsettings.json file where different environment has different configuration. How is this handled these days? I know how I can make it work, but I want to know what's the best way of having separate configurations for separate environments?
2 Replies
Pobiega
Pobiega10mo ago
Most basic solution is just appsettings.Development.json etc Where you put the env specific stuff in its own file Still, you need a place to store your secrets. Key Vault etc
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server