Elysia Framework Now Deployable Instantly on Vercel

Web Development

Deploy your ergonomic TypeScript Elysia applications instantly on Vercel. Benefit from automatic resource provisioning, flexible Node.js/Bun runtimes, and cost-effective Active CPU pricing.

Elysia, the popular and ergonomic TypeScript framework renowned for its end-to-end type safety, can now be instantly deployed on Vercel! This integration simplifies the deployment process, allowing developers to bring their high-performance applications to life with unprecedented ease.

Upon deployment, Vercel will intelligently detect your application as an Elysia project and automatically provision the most optimal resources, ensuring efficient and seamless execution.

Here's a quick example of a basic Elysia application:

// src/index.ts
import { Elysia } from "elysia";

const app = new Elysia()
  .get("/", () => `Hello from Elysia, running on Vercel!`);

export default app;

By default, Elysia applications on Vercel will utilize the Node.js runtime. However, for those looking to leverage the performance benefits of Bun, you can easily opt-in by adding the bunVersion line to your vercel.json file:

// vercel.json
{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "bunVersion": "1.x"
}

Vercel's backend infrastructure employs Fluid compute with Active CPU pricing, meaning you only pay for the time your code is actively consuming CPU resources. This ensures a cost-effective and scalable solution for your Elysia deployments.

Get started today by deploying your Elysia application on Vercel or dive deeper into the documentation for Elysia or Bun Runtime on Vercel.