refactor: replace Next.js server with Uvicorn for backend, remove backfill script
Build and Push Reader API Image / docker (push) Successful in 17s

This commit is contained in:
2026-05-01 19:20:30 +07:00
parent 9f235c33b2
commit 6b927f20e1
7 changed files with 360 additions and 2881 deletions
-5
View File
@@ -1,4 +1,3 @@
from motor.motor_asyncio import AsyncIOMotorClient
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
from app.config import settings
@@ -33,10 +32,6 @@ def _normalize_database_url(url: str) -> str:
engine = create_async_engine(_normalize_database_url(settings.database_url), pool_pre_ping=True)
SessionLocal = async_sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)
mongo_client = AsyncIOMotorClient(settings.mongodb_uri)
mongo_db = mongo_client.get_default_database()
async def get_db_session() -> AsyncSession:
session = SessionLocal()
try: