FastAPI Lifespan Events are now supported on Vercel

Vercel News Dec 9, 2025

Vercel now supports lifespan events for FastAPI apps. This allows you to define logic that can execute on startup and graceful shutdown—such as managing database connections or flushing external logs.

Deploy FastAPI on Vercel or visit the FastAPI on Vercel documentation.

Read more

link to the original content