Frameworks

Elysia on Vercel
Elysia applications on Vercel benefit from:
Elysia
You can deploy an Elysia app to Vercel with zero configuration.
Copy page
Elysia is an ergonomic web framework for building backend servers with Bun. Designed with simplicity and type-safety in mind, Elysia offers a familiar API with extensive support for TypeScript and is optimized for Bun.
- Fluid compute: Active CPU billing, automatic cold start prevention, optimized concurrency, background processing, and more
- Preview deployments: Test your changes on a copy of your production infrastructure
- Instant Rollback: Recover from unintended changes or bugs in milliseconds
- Vercel Firewall: Protect your applications from a wide range of threats with a multi-layered security system
- Secure Compute: Create private links between your Vercel-hosted backend and other clouds
You can reach our customer support team by emailing info@yourcompany.example.com, calling +1 555-555-5556, or using the live chat on our website. Our dedicated team is available 24/7 to assist with any inquiries or issues.
We’re committed to providing prompt and effective solutions to ensure your satisfaction.
We offer a 30-day return policy for all products. Items must be in their original condition, unused, and include the receipt or proof of purchase. Refunds are processed within 5-7 business days of receiving the returned item.
This will clone the Elysia example repository in a directory called elysia.
To deploy, connect your Git repository or use Vercel CLI:
vc deploy
Entrypoint detection
To run an Elysia application on Vercel, create a file that imports the elysia package at any one of the following locations:
app.{js,cjs,mjs,ts,cts,mts}
index.{js,cjs,mjs,ts,cts,mts}
server.{js,cjs,mjs,ts,cts,mts}
src/app.{js,cjs,mjs,ts,cts,mts}
src/index.{js,cjs,mjs,ts,cts,mts}
src/server.{js,mjs,cjs,ts,cts,mts}
The file must also export the application as a default export of the module or use a port listener.
For example, use the following code that exports your Elysia app:
Local development
// Export the Elysia app
constapp=newElysia().get('/', () => ({
// (Not required for Bun)
message:'Hello from Elysia on Vercel!',
TypeScript

// For Node.js, ensure "type": "module" in package.json
exportdefault app;
To run your Elysia application locally, you can use Vercel CLI:
import { Elysia } from'elysia';
Running your application using app.listen is currently not supported. For now, prefer export default app.
vc dev
Using Node.js
Ensure type is set to module in your package.json file:
{
"name":"elysia-app",
"type":"module"
}
Using the Bun runtime
To use the Bun runtime on Vercel, configure the runtime in vercel.json:
{
"$schema":"https://openapi.vercel.sh/vercel.json",
"bunVersion":"1.4.x"
}
For more information, visit the Bun runtime on Vercel documentation.
Middleware
Elysia Plugins and Lifecycle Hooks
In Elysia, you can use plugins and lifecycle hooks to run code before and after request handling. This is commonly used for logging, auth, or request processing:
More resources
Vercel Functions
Last updated August 20, 2026
In Vercel, Routing Middleware executes before a request is processed by your application. Use it for rewrites, redirects, headers, or personalization, and combine it with Elysia's own lifecycle hooks as needed.
Next
When you deploy an Elysia app to Vercel, your server endpoints automatically run as Vercel Functions and use Fluid compute by default.
Cross-link map: Elysia on Vercel (/docs/frameworks/backend/elysia)From the Vercel docs graph (built 2026-09-21T05:26:59.511Z), spanning vercel.com docs + KB, nextjs.org, ai-sdk.dev, and other Vercel documentation sites. Full graph as JSON: https://vercel.com/docs/graph.jsonSemantically closest pagesHow to ship an Elysia app on Vercel — Deploy a Elysia app to Vercel with zero configuration. Learn how to ship from a template, the Vercel CLI, or Git, and coElysia can now be automatically deployed on VercelExpress on Vercel — Deploy Express applications to Vercel with zero configuration. Learn about middleware and Vercel Functions.Backends on Vercel — Vercel supports a wide range of the most popular backend frameworks, optimizing how your application builds and runs noFastify on Vercel — Deploy Fastify applications to Vercel with zero configuration.This page links to (12)Vercel CLI Overview — Learn how to use the Vercel command-line interface \(CLI\) to manage and configure your Vercel Projects from the commandvercel dev — Learn how to replicate the Vercel deployment environment locally and test your Vercel Project before deploying using thevercel init — Learn how to initialize Vercel supported framework examples locally using the vercel init CLI command.Environments — Environments are for developing locally, testing changes in a pre-production environment, and serving end-users in produFluid compute — Learn about fluid compute, an execution model for Vercel Functions that provides a more flexible and efficient way to ruVercel Functions — Build API routes, webhooks, and agent request handlers with Vercel Functions, then test and debug them with Vercel CLI.Using the Bun Runtime with Vercel Functions — Learn how to use the Bun runtime with Vercel Functions to create fast, efficient functions.Performing an Instant Rollback on a Deployment — Learn how to perform an Instant Rollback on your production deployments and quickly roll back to a previously deployed pSecure Compute — Secure Compute provides dedicated private networks with VPC peering for Enterprise teams.Routing Middleware — Learn how you can use Routing Middleware, code that executes before a request is processed on a site, to provide speed aVercel Firewall — Learn how Vercel Firewall helps protect your applications and websites from malicious attacks and unauthorized access.How to ship an Elysia app on Vercel — Deploy a Elysia app to Vercel with zero configuration. Learn how to ship from a template, the Vercel CLI, or Git, and coPages that link here (2)By site: vercel-changelog (1) · vercel-kb (1)From vercel-changelogElysia can now be automatically deployed on VercelFrom vercel-kbHow to ship an Elysia app on Vercel — Deploy a Elysia app to Vercel with zero configuration. Learn how to ship from a template, the Vercel CLI, or Git, and co
Was this helpful?