Files
bridge/app
zeekayandHanzo Dev 5ffbaa9260 keep the workspace layout in the runtime image
Error: Cannot find module 'express'
    Require stack: - /app/dist/server.js

The image built, pushed and then could not start. pnpm links dependencies with
RELATIVE symlinks that count directories from where they sit —

    app/server/node_modules/express     -> ../../../node_modules/.pnpm/express@…
    app/server/node_modules/@luxfi/core -> ../../../../pkg/core

— and the runtime stage flattened app/server/node_modules into /app/node_modules,
which moves every one of those links two directories too high. They then resolve
above the filesystem root and the first require fails. Nothing about the copy
looks wrong; the links are simply measured from somewhere else now.

So the layout is reproduced exactly rather than tidied, and WORKDIR moves to meet
it. /app/pkg comes along because @luxfi/core and @luxfi/utila are workspace links
that point into it.

Caught by the smoke rather than by production, which is the whole reason it runs
the container instead of trusting a green build.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-07 21:29:09 -07:00
..