We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e23a1 commit 7bef7e4Copy full SHA for 7bef7e4
e2e/nestjs/services/nestjs.ts
@@ -20,6 +20,14 @@ const supergraph = opts.get('supergraph', true);
20
})
21
class AppModule {}
22
23
-const app = await NestFactory.create(AppModule);
24
const port = opts.getServicePort('nestjs', true);
25
-await app.listen(port);
+
+async function main() {
26
+ const app = await NestFactory.create(AppModule);
27
+ await app.listen(port);
28
+}
29
30
+main().catch((err) => {
31
+ console.error(err);
32
+ process.exit(1);
33
+});
0 commit comments