refactor codebase and pothos structure
This commit is contained in:
@@ -22,7 +22,8 @@ async function bootstrap() {
|
||||
document.paths['/graphql'] = {
|
||||
get: {
|
||||
summary: 'GraphQL Playground',
|
||||
description: 'Access the GraphQL Playground to interact with the GraphQL API.',
|
||||
description:
|
||||
'Access the GraphQL Playground to interact with the GraphQL API.',
|
||||
responses: {
|
||||
'200': {
|
||||
description: 'GraphQL Playground',
|
||||
@@ -31,6 +32,7 @@ async function bootstrap() {
|
||||
},
|
||||
};
|
||||
|
||||
await app.listen(3000);
|
||||
const port = process.env.LISTEN_PORT ?? 3000; // Default to 3000 if LISTEN_PORT is not set
|
||||
await app.listen(port);
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user