This commit is contained in:
@@ -21,7 +21,7 @@ async function bootstrap() {
|
||||
}
|
||||
const app = await NestFactory.create<NestFastifyApplication>(
|
||||
AppModule,
|
||||
new FastifyAdapter({ https: httpsOptions })
|
||||
new FastifyAdapter(!isProd ? { https: httpsOptions } : undefined)
|
||||
);
|
||||
app.enableCors({
|
||||
origin: (origin, callback) => {
|
||||
|
||||
Reference in New Issue
Block a user