Menu

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

Zero-configuration support for NestJS - Vercel

Vercel News·Austin Merrick·4 days ago
#5g6HQRj2
Reading 0:00
15s threshold

Vercel now supports NestJS applications, a popular framework for building efficient, scalable Node.js server-side applications, with zero-configuration.

import 'reflect-metadata';

import { Controller, Get, Module } from '@nestjs/common';

import { NestFactory } from '@nestjs/core';

@Controller()

class AppController {

@Get()

getHello() {

return 'Hello, world!';

}

}

@Module({

controllers: [AppController],

})

class AppModule {}

NestFactory.create(AppModule).then(app => app.listen(3000));

A "Hello World" NestJS app on Vercel

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

Deploy NestJS on Vercel or visit the NestJS on Vercel documentation

Read More