Skip to content

Commit

Permalink
fix(core): pass application config to nest container
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone authored Jul 30, 2023
1 parent 2b1b63a commit 55da6fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/nest-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,14 @@ export class NestFactoryStatic {
moduleCls: any,
options?: NestApplicationContextOptions,
): Promise<INestApplicationContext> {
const container = new NestContainer();
const applicationConfig = new ApplicationConfig();
const container = new NestContainer(applicationConfig);
const graphInspector = this.createGraphInspector(options, container);

this.setAbortOnError(options);
this.registerLoggerConfiguration(options);

const applicationConfig = undefined;

await this.initialize(
moduleCls,
container,
Expand Down

0 comments on commit 55da6fa

Please sign in to comment.