Use new fastify router options
This commit is contained in:
parent
0fe1459864
commit
b061df7f7d
1 changed files with 5 additions and 3 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue