diff --git a/packages/api/core/src/util/forge-config.ts b/packages/api/core/src/util/forge-config.ts index 503262dace..03b9a229cf 100644 --- a/packages/api/core/src/util/forge-config.ts +++ b/packages/api/core/src/util/forge-config.ts @@ -110,7 +110,7 @@ export default async (dir: string): Promise => { let forgeConfig: ForgeConfig | string | null = packageJSON.config && packageJSON.config.forge ? packageJSON.config.forge : null; if (!forgeConfig || typeof forgeConfig === 'string') { - for (const extension of ['.js', ...Object.keys(interpret.extensions), forgeConfig].filter(Boolean)) { + for (const extension of ['.js', ...Object.keys(interpret.extensions)]) { const pathToConfig = path.resolve(dir, `forge.config${extension}`); if (await fs.pathExists(pathToConfig)) { rechoir.prepare(interpret.extensions, pathToConfig, dir);