Using the Nest CLI:
$ nest add @nestjs/azure-func-http
You can read more about this integration here.
If you don't need the compatibility with
express library, you can use a native routing instead:
const app = await NestFactory.create(AppModule, new AzureHttpRouter());
AzureHttpRouter is exported from
AzureHttpRouter doesn't use
express underneath, the routing itself is much faster.
You can pass additional flags to customize the post-install schematic. For example, if your base application directory is different than
$ nest add @nestjs/azure-func-http --rootDir app
Other available flags:
rootModuleFileName- the name of the root module file, default:
rootModuleClassName- the name of the root module class, default:
skipInstall- skip installing dependencies, default:
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
Nest is MIT licensed.