feat(deployment): allow deploy to vercel

This commit is contained in:
Kentai Radiquum 2024-05-15 19:40:18 +05:00
parent f4e340b21d
commit f3a15eb956
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,5 @@
import os
import uvicorn
from fastapi import FastAPI
from modules import proxy
@ -38,6 +40,9 @@ TAGS = [
PREFIX = "/v1"
if os.getenv("API_PREFIX"):
PREFIX = os.getenv("API_PREFIX")
app = FastAPI(
openapi_tags=TAGS,
title="AniX API",