Skip to content

Commit 6685cfb

Browse files
fix anayltics api key
1 parent af6e448 commit 6685cfb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backend/app/main.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
from app.routers import generate, modify
66
from app.core.limiter import limiter
77
from typing import cast
8-
from starlette.responses import Response
98
from starlette.exceptions import ExceptionMiddleware
109
from api_analytics.fastapi import Analytics
1110
import os
12-
import uvicorn
11+
1312
app = FastAPI()
1413
app.state.limiter = limiter
1514
app.add_exception_handler(RateLimitExceeded, cast(
@@ -29,7 +28,7 @@
2928
allow_headers=["*"],
3029
)
3130

32-
API_ANALYTICS_KEY = os.getenv("api-analytics-key")
31+
API_ANALYTICS_KEY = os.getenv("API_ANALYTICS_KEY")
3332
if API_ANALYTICS_KEY:
3433
app.add_middleware(Analytics, api_key=API_ANALYTICS_KEY)
3534

0 commit comments

Comments
 (0)