refactor: move environment variables loading to application entry point (#283)
This commit is contained in:
parent
5d5b6bd035
commit
60566c9c4d
2 changed files with 4 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
|||
# Load environment variables
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
from contextlib import asynccontextmanager
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
Loading…
Reference in a new issue