Skip to content

Commit 4167aca

Browse files
committed
Fix depcrecation warning
1 parent 3365dd9 commit 4167aca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/function/fastapp/core/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class Settings(BaseSettings):
1616
APPLICATIONINSIGHTS_CONNECTION_STRING: str = Field(
1717
default="", env="APPLICATIONINSIGHTS_CONNECTION_STRING"
1818
)
19-
WEBSITE_NAME: str = Field(default="test", env="WEBSITE_SITE_NAME")
20-
WEBSITE_INSTANCE_ID: str = Field(default="0", env="WEBSITE_INSTANCE_ID")
21-
MY_SECRET_CONFIG: str = Field(default="", env="MY_SECRET_CONFIG")
19+
WEBSITE_NAME: str = Field(default="test", alias="WEBSITE_SITE_NAME")
20+
WEBSITE_INSTANCE_ID: str = Field(default="0", alias="WEBSITE_INSTANCE_ID")
21+
MY_SECRET_CONFIG: str = Field(default="", alias="MY_SECRET_CONFIG")
2222

2323

2424
settings = Settings()

0 commit comments

Comments
 (0)