Feat/s3 storage #2
@@ -9,6 +9,10 @@ import { PolicyDeniedFilter } from './platform/policy-denied.filter';
|
|||||||
|
|
||||||
async function bootstrap(): Promise<void> {
|
async function bootstrap(): Promise<void> {
|
||||||
const app = await NestFactory.create(AppModule, { rawBody: true });
|
const app = await NestFactory.create(AppModule, { rawBody: true });
|
||||||
|
// Express 5 defaults to the 'simple' query parser, which ignores nested params like
|
||||||
|
// ?metadata[key]=value — so generic metadata filters would be silently dropped. Use the
|
||||||
|
// qs-based 'extended' parser so those parse into a nested object.
|
||||||
|
app.getHttpAdapter().getInstance().set('query parser', 'extended');
|
||||||
app.use(traceMiddleware); // request-scoped trace context + x-trace-id header (P9)
|
app.use(traceMiddleware); // request-scoped trace context + x-trace-id header (P9)
|
||||||
app.useGlobalPipes(
|
app.useGlobalPipes(
|
||||||
new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true }),
|
new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true }),
|
||||||
|
|||||||
Reference in New Issue
Block a user