Backends on Vercel

The following backend frameworks are supported with zero-configuration.

Hono

Hono

Web framework built on Web Standards

Nitro

Nitro

Nitro is a next generation server toolkit.

If you are transitioning from a fully managed server or containerized environment to Vercel’s serverless architecture, you may need to rethink a few concepts in your application since there is no longer a server always running in the background.

The following are generally applicable to serverless, and therefore Vercel Functions (running with or without Fluid compute):

Serverless functions have maximum execution limits and should respond as quickly as possible. They should not subscribe to data events. Instead, we need a client that subscribes to data events and a serverless functions that publishes new data. Consider using a serverless friendly realtime data provider.

The nature of serverless functions means they can open multiple database connections in response to increasing traffic. To manage this efficiently, use serverless-friendly databases or implement connection pooling. This helps ensure optimal connections and maintains application uptime.

In serverless environments, optimizing response computation is crucial. Consider the efficiency of view engines like React, Pug or EJS. It is also important to set up correct headers to enable caching, preventing the need to compute the same response for every request. This approach minimizes on-demand computation and leverages cached content for future requests.

Express.js will swallow errors that can put the main function into an undefined state unless properly handled. Express.js will render it’s own error pages (500), which prevents Vercel from discarding the function and resetting its state. Implement robust error handling to ensure errors are properly managed and do not interfere with the serverless function's lifecycle.

Last updated on August 2, 2025