Skip to content

Get environment from standard environment variable names#586

Merged
ikkentim merged 1 commit into
mainfrom
feature/environment_variables
May 22, 2026
Merged

Get environment from standard environment variable names#586
ikkentim merged 1 commit into
mainfrom
feature/environment_variables

Conversation

@ikkentim
Copy link
Copy Markdown
Owner

Load environment name from (in this order):

  • open.mp config: sampsharp.environment
  • environment variable: DOTNET_ENVIRONMENT
  • environment variable: ASPNETCORE_ENVIRONMENT

These environment variables are chosen as they match this default behavior: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-10.0#environment-variables-that-determine-the-runtime-environment

@ikkentim ikkentim merged commit 5806abb into main May 22, 2026
2 checks passed
@ikkentim ikkentim deleted the feature/environment_variables branch May 22, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant