Next.js Discord

Discord Forum

Turborepo - standalone issue

Unanswered
Florida White posted this in #help-forum
Open in Discord
Florida WhiteOP
Hey. I have standard monorepo created with turborepo. I'm hosting my next.js on custom server so during pipeline I want to build application as standalone, creating artifact and sending to server. I'm getting structure like this (look for attached image). When I will copy standalone to server (or even locally to different folder than repository) and trying to run server.js from /spsv/client I'm getting unable to find next - I think this is because way it's created, how to have a proper structure? /spsv/client/node_modules contains next and react folders only and they are empty.

1 Reply

Florida WhiteOP
bump