Configure Vercel deployment and preserve deployed theme support

This commit is contained in:
StormRunner06106
2026-09-13 14:56:10 -07:00
parent d52495945b
commit cb8d062481
27 changed files with 610 additions and 60 deletions
+6
View File
@@ -130,6 +130,12 @@ def cleanup_pending():
@asynccontextmanager
async def lifespan(app):
from backend import main
if main.on_vercel():
# Serverless instances can stop between requests. Cron retries the
# durable queue; article mutations still attempt cleanup immediately.
yield
return
async def retry():
while True:
await run_in_threadpool(cleanup_pending)