fix variable in env
This commit is contained in:
1 parent
f6c5dce452
commit
7cace210d6
7 files changed
+79
-16
No files matched your search
@@ -23,6 +23,13 @@ from .models import (
|
||||
from .recordings import list_recordings
|
||||
from .scheduler import Scheduler
|
||||
|
||||
try:
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv(Path(__file__).resolve().parents[2] / ".env")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def _cors_origins() -> list[str]:
|
||||
raw = os.getenv("CORS_ORIGINS", "http://localhost:5173")
|
||||
|
||||
Reference in new issue
Block a user