Skip to content

Commit b37e766

Browse files
committed
Add Vercel FastAPI entrypoint
1 parent d0c6a0d commit b37e766

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

.serena/project.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,10 @@ initial_prompt: ""
115115
# override of the corresponding setting in serena_config.yml, see the documentation there.
116116
# If null or missing, the value from the global config is used.
117117
symbol_info_budget:
118+
119+
# The language backend to use for this project.
120+
# If not set, the global setting from serena_config.yml is used.
121+
# Valid values: LSP, JetBrains
122+
# Note: the backend is fixed at startup. If a project with a different backend
123+
# is activated post-init, an error will be returned.
124+
language_backend:

api/index.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Vercel ASGI entrypoint for the ANIMAtiZE FastAPI app."""
2+
3+
from __future__ import annotations
4+
5+
from src.web.app import app
6+

vercel.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": 2,
3+
"functions": {
4+
"api/index.py": {
5+
"maxDuration": 60,
6+
"includeFiles": [
7+
"src/web/static/**",
8+
"configs/**"
9+
]
10+
}
11+
},
12+
"routes": [
13+
{
14+
"src": "/(.*)",
15+
"dest": "api/index.py"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)