feat(perf): implement comprehensive Core Web Vitals, ISR caching, and media optimizations
Deploy Canina / deploy (push) Successful in 1m48s

This commit is contained in:
parsa aghaei committed 2026-08-24 17:23:43 +03:30
1 parent 2a31a9f8e4
commit fe6a900665
42 files changed
+12941 -10561

No files matched your search

+3
View File
@@ -8,6 +8,7 @@ import { CustomHttpExceptionFilter } from './common/filters/http-exception.filte
import { PrismaExceptionFilter } from './common/filters/prisma-exception.filter';
import { DecimalInterceptor } from './common/interceptors/decimal.interceptor';
import helmet from 'helmet';
import compression from 'compression';
// Ensure BigInt can be serialized to JSON across all NestJS / Express responses
(BigInt.prototype as any).toJSON = function () {
@@ -46,6 +47,8 @@ async function bootstrap() {
...staticUploadOptions,
});
app.use(compression());
app.use(
helmet({
contentSecurityPolicy: false, // Avoid blocking Swagger UI scripts and assets