fix: update production environment variable check

- Change FETCH_ML_ENV check from 'production' to 'prod'
- Aligns with common environment naming conventions
- Fixes authentication validation for production deployment
This commit is contained in:
Jeremie Fraeys 2025-12-04 17:06:32 -05:00
parent c5df0f40ff
commit 10a3afaafb

View file

@ -10,7 +10,7 @@ import (
// ValidateAuthConfig enforces authentication requirements
func (c *AuthConfig) ValidateAuthConfig() error {
// Check if we're in production environment
isProduction := os.Getenv("FETCH_ML_ENV") == "production"
isProduction := os.Getenv("FETCH_ML_ENV") == "prod"
if isProduction {
if !c.Enabled {