diff --git a/src/main.ts b/src/main.ts index b861fd3..e5ad215 100644 --- a/src/main.ts +++ b/src/main.ts @@ -21,7 +21,7 @@ async function bootstrap() { } const app = await NestFactory.create( AppModule, - new FastifyAdapter({ https: httpsOptions }) + new FastifyAdapter(!isProd ? { https: httpsOptions } : undefined) ); app.enableCors({ origin: (origin, callback) => {