Express instance

In order to have a full control of the express lifecycle, you can pass a self-created instance as a second argument of the NestFactory.create() method.

TypeScript

const server = express();
const app = await NestFactory.create(ApplicationModule, server);
  • Express instance

Support us

Nest is an MIT-licensed open source project. It can grow thanks to the support by these awesome people. If you'd like to join them, please read more here.

Principal Sponsor

Sponsors / Backers