fix(subsUnion): drop duplicated programs/server prefix in npm path
All checks were successful
build-image / build (push) Successful in 11m53s

process.cwd() for this process is already /app/programs/server (same
basis WORKER_PATH already relied on), so prefixing 'programs/server/'
again produced .../programs/server/programs/server/npm/node_modules —
still Cannot find module '@turf/circle', just with a longer wrong path.
This commit is contained in:
vjrj 2026-07-30 09:04:11 +02:00
parent 324936242b
commit 570cb49764

View file

@ -12,7 +12,7 @@ const WORKER_PATH = path.resolve(process.cwd(), 'assets/app/workers/unionWorker.
// and fails with "Cannot find module '@turf/circle'". Resolving the absolute
// path here, where Meteor's own module system already knows how to find it,
// and handing it to the worker sidesteps that entirely.
const NPM_MODULES = path.resolve(process.cwd(), 'programs/server/npm/node_modules');
const NPM_MODULES = path.resolve(process.cwd(), 'npm/node_modules');
const turfPaths = {
circle: path.join(NPM_MODULES, '@turf/circle'),
union: path.join(NPM_MODULES, '@turf/union'),