Skip to content

Commit 1846cb7

Browse files
committed
fix: Correct static directory path for serving static files
1 parent ddc9382 commit 1846cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def rate_limit_exception_handler(request: Request, exc: Exception) -> Resp
156156
app.add_exception_handler(RateLimitExceeded, rate_limit_exception_handler)
157157

158158
# Mount static files to serve CSS, JS, and other static assets
159-
app.mount("/static", StaticFiles(directory="static"), name="static")
159+
app.mount("/static", StaticFiles(directory="src/static"), name="static")
160160

161161
# Set up API analytics middleware if an API key is provided
162162
if app_analytics_key := os.getenv("API_ANALYTICS_KEY"):

0 commit comments

Comments
 (0)