Skip to content

Commit

Permalink
Add express adaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnydgreen committed Oct 28, 2023
1 parent 27a4e0b commit 4dcd6cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin_nestjs/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
INestApplication,
Type,
} from "npm:@nestjs/common@^10.2.7";
import { ExpressAdapter } from "npm:@nestjs/platform-express@^10.2.7";
import {
OverrideByFactoryOptions,
Test,
Expand Down Expand Up @@ -42,7 +43,7 @@ class PluginFactory {

// Create application and listen on an available port
const module = await baseModule.compile();
const app = module.createNestApplication({
const app = module.createNestApplication(new ExpressAdapter(), {
logger: false,
forceCloseConnections: true,
});
Expand Down

0 comments on commit 4dcd6cc

Please sign in to comment.