Use new fastify router options

This commit is contained in:
Philipinho
2025-12-13 14:15:06 +00:00
parent 0fe1459864
commit b061df7f7d
+4 -2
View File
@@ -15,10 +15,12 @@ async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>( const app = await NestFactory.create<NestFastifyApplication>(
AppModule, AppModule,
new FastifyAdapter({ new FastifyAdapter({
trustProxy: true,
routerOptions: {
maxParamLength: 1000,
ignoreTrailingSlash: true, ignoreTrailingSlash: true,
ignoreDuplicateSlashes: true, ignoreDuplicateSlashes: true,
maxParamLength: 1000, },
trustProxy: true,
}), }),
{ {
rawBody: true, rawBody: true,