File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 22from dotenv import load_dotenv
33from pydantic import field_validator
44from typing import Optional
5+ from pydantic import Field , AliasChoices
56
67load_dotenv ()
78
@@ -39,11 +40,11 @@ class Settings(BaseSettings):
3940 # Backend URL
4041 backend_url : str = ""
4142
42- # ✅ New org info fields (pulled from . env automatically )
43- org_name : str
44- org_website : str
45- org_github : str
46- org_twitter : str
43+ # Organization identity (populated from env)
44+ org_name : str = Field (..., validation_alias = AliasChoices ( "ORG_NAME" , "org_name" ))
45+ org_website : str = Field (..., validation_alias = AliasChoices ( "ORG_WEBSITE" , "org_website" ))
46+ org_github : str = Field (..., validation_alias = AliasChoices ( "ORG_GITHUB" , "org_github" ))
47+ org_twitter : str = Field (..., validation_alias = AliasChoices ( "ORG_TWITTER" , "org_twitter" ))
4748
4849 @field_validator ("supabase_url" , "supabase_key" , mode = "before" )
4950 @classmethod
You can’t perform that action at this time.
0 commit comments