test push

This commit is contained in:
2026-03-29 19:41:33 +03:00
parent d1baded79d
commit 0c265ed0fc

View File

@@ -1,6 +1,7 @@
import { ValidationPipe } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { NestFactory, Reflector } from '@nestjs/core';
import { Request, Response } from 'express';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { AppModule } from './app.module';
import { ResponseInterceptor } from './common/interceptors/response.interceptor';
@@ -30,6 +31,17 @@ async function bootstrap() {
);
app.useGlobalInterceptors(new ResponseInterceptor(reflector));
app.use(['/docs', '/docs-json'], (_request: Request, response: Response, next) => {
response.setHeader(
'Cache-Control',
'no-store, no-cache, must-revalidate, proxy-revalidate',
);
response.setHeader('Pragma', 'no-cache');
response.setHeader('Expires', '0');
response.setHeader('Surrogate-Control', 'no-store');
next();
});
const swaggerConfig = new DocumentBuilder()
.setTitle('ParsShop API')
.setDescription('Phase 1 API documentation for ParsShop')