Andrew Ovens

Results comments of Andrew Ovens

This is my workaround script which works with namespaced packages: ``` RUN if [ -d ".next/node_modules" ]; then \ cd .next/node_modules && \ for link in ./*; do \ if...

Ya this got so much worse when I switched to pnpm and their isolated linking. For now I'm just putting the entire monorepo node_modules in my docker image and maintaining...

I ended up switching to a standalone build and it's working perfectly (with a much smaller image size). It creates a fully self-contained node_modules inside the standalone folder

https://nextjs.org/docs/pages/api-reference/config/next-config-js/output#automatically-copying-traced-files

2 was my primary goal, though 3 is also unideal

I have not implemented any clients, we're using the NodeJS client. Ya my thinking was that it ultimately doesn't matter since the fallback is the existing behaviour. (IE: if there's...

I did implement the client-side solution on my side which you're right does solve # 2 from above which I said was my primary concern, so fair callout

Yes I'm using a monorepo. I found that symlinks are created, but they resolve to the .pnpm folder inside node_modules inside the standalone folder, not to the root monorepo node_modules....