fix(core): Fix dir in module path resolution for Docker (#16725)

This commit is contained in:
Iván Ovejero
2025-06-26 11:53:31 +02:00
committed by GitHub
parent 7e376e087e
commit 892b0d2a82

View File

@@ -54,7 +54,7 @@ export class ModuleRegistry {
// docker
const n8nPackagePath = require.resolve('n8n/package.json');
const n8nRoot = path.dirname(n8nPackagePath);
modulesDir = path.join(n8nRoot, 'src', 'modules');
modulesDir = path.join(n8nRoot, 'dist', 'modules');
} catch {
// local dev
const dir = process.env.NODE_ENV === 'test' ? 'src' : 'dist';