Skip to content

Commit

Permalink
fix: Medusa load config were not using the #rootDir anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 11, 2023
1 parent f26d145 commit 0d19e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Medusa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Medusa {
* @param modules The modules to load into medusa
*/
public async load(modules: Type[]): Promise<MedusaContainer> {
const configModule = await asyncLoadConfig();
const configModule = await asyncLoadConfig(this.#rootDir, 'medusa-config');
const moduleComponentsOptions = await modulesLoader(modules, configModule);
await validatorsLoader(moduleComponentsOptions.get('validator') ?? []);
await overrideEntitiesLoader(moduleComponentsOptions.get('entity') ?? []);
Expand Down

0 comments on commit 0d19e0d

Please sign in to comment.