Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Elysia can now be automatically deployed on Vercel - Vercel

Vercel News·Jeff See·4 days ago
#oR7uu2Y3
Reading 0:00
15s threshold

Elysia, a popular ergonomic TypeScript framework with end-to-end type safety, can now be deployed instantly on Vercel.

When deployed, Vercel will now automatically identify your app is running Elysia and provision the optimal resources to run it efficiently.

import { Elysia } from "elysia";

const app = new Elysia()

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

export default app;

By default, Elysia will use Node. You can opt-in to the Bun runtime by adding the bunVersion line below to your vercel.json.

{

"$schema": "https://openapi.vercel.sh/vercel.json",

"bunVersion": "1.x"

}

Backends on Vercel use Fluid compute with Active CPU pricing by default, so you only pay for time where your code is actively using CPU.

Deploy Elysia on Vercel, or visit the documentation for Elysia or Bun Runtime at Vercel.

Read More