Skip to content

Commit 2fad7c0

Browse files
committed
test
1 parent 0d54ff7 commit 2fad7c0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

โ€Žsrc/backend/src/app.module.tsโ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ import { UserModule } from './user/user.module';
1717
driver: ApolloDriver,
1818
useFactory: () => ({
1919
autoSchemaFile: join(process.cwd(), 'schema.graphql'),
20-
context: ({ req }) => ({
20+
context: ({ req, res }) => ({
2121
req,
22+
res,
2223
}),
2324
debug: true,
2425
playground: true,
2526
sortSchema: true,
27+
introspection: true,
28+
cache: 'bounded',
2629
}),
2730
}),
2831
ContentModule,

โ€Žsrc/backend/src/main.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function bootstrap() {
66
const app = await NestFactory.create(AppModule);
77

88
app.enableCors({
9-
origin: [process.env.CLIENT_ENDPOINT],
9+
origin: process.env.CLIENT_ENDPOINT,
1010
credentials: true,
1111
methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE', 'OPTIONS'],
1212
allowedHeaders: [

0 commit comments

Comments
ย (0)