Menu

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

Zero-configuration support for Fastify - Vercel

Vercel News·Austin Merrick·4 days ago
#5EBcXr9a
#vercel#fastify#hello#world#supports#photo
Reading 0:00
15s threshold

Vercel now supports Fastify applications, a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture, with zero-configuration.

import Fastify from 'fastify'

const fastify = Fastify({ logger: true })

fastify.get('/', async (request, reply) => { return { hello: 'world' }})

fastify.listen({ port: 3000 })

A "Hello World" Fastify app on Vercel

Backends on Vercel use Fluid compute with Active CPU pricing by default. This means your Fastify app will automatically scale up and down based on traffic, and you only pay for what you use.

Deploy Fastify on Vercel or visit the Fastify on Vercel documentation

Read More