update service status

This commit is contained in:
2024-10-23 15:43:50 +07:00
parent 7e55f4093b
commit 2872ac69ef
14 changed files with 212 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.js';
import { clerkMiddleware } from '@clerk/express';
import { Logger } from '@nestjs/common';
async function bootstrap() {
@@ -11,11 +12,7 @@ async function bootstrap() {
app.enableCors({
origin: corsOrigin,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
allowedHeaders: [
'Content-Type',
'Authorization',
'x-apollo-operation-name',
],
allowedHeaders: ['Content-Type', '*', 'x-apollo-operation-name'],
credentials: true,
});
@@ -46,6 +43,9 @@ async function bootstrap() {
},
};
// clerk middleware
app.use(clerkMiddleware({}));
// graphql upload
app.use(
graphqlUploadExpress({