You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docker): ship each API's nested node_modules so ajv-formats resolves (#44)
The runner stage copied only the root node_modules, but a prod dependency
installs NESTED under the app when the root store slot is held by a
different major. Dev tooling pins ajv-formats@2 at the hoisted root, so
the apps' prod ajv-formats@3 lands in apps/<app>/node_modules and never
made it into the runtime image — platform-api and citizen-portal-api
booted then crashed with "Cannot find module 'ajv-formats'".
Copy apps/<app>/node_modules into each runner. ajv stays hoisted at root;
the nested ajv-formats resolves it up the tree. Verified against the exact
turbo-prune + npm install + npm prune --omit=dev sequence.
The clean package-lock regen in #43 changed the hoist layout and exposed
this latent gap.
0 commit comments