mirror of
https://github.com/docmost/docmost.git
synced 2026-05-17 23:14:07 +08:00
Use new fastify router options
This commit is contained in:
@@ -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({
|
||||||
ignoreTrailingSlash: true,
|
|
||||||
ignoreDuplicateSlashes: true,
|
|
||||||
maxParamLength: 1000,
|
|
||||||
trustProxy: true,
|
trustProxy: true,
|
||||||
|
routerOptions: {
|
||||||
|
maxParamLength: 1000,
|
||||||
|
ignoreTrailingSlash: true,
|
||||||
|
ignoreDuplicateSlashes: true,
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
rawBody: true,
|
rawBody: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user