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