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 2
2
from dotenv import load_dotenv
3
3
from pydantic import field_validator
4
4
from typing import Optional
5
+ from pydantic import Field , AliasChoices
5
6
6
7
load_dotenv ()
7
8
@@ -39,11 +40,11 @@ class Settings(BaseSettings):
39
40
# Backend URL
40
41
backend_url : str = ""
41
42
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" ))
47
48
48
49
@field_validator ("supabase_url" , "supabase_key" , mode = "before" )
49
50
@classmethod
You can’t perform that action at this time.
0 commit comments