Next.js Discord

Discord Forum

Building Node app that is part of Next codebase

Unanswered
Yacare Caiman posted this in #help-forum
Open in Discord
Avatar
Yacare CaimanOP
Looking for general guidance on compiling a separate Node express app (to be served on an EC2 instance) that is part of a Next codebase.

Backstory: split application into separate projects, each with their own pacakge.json and tsconfig.json with a shared library that is a private npm package. But that has several limitations, which I won't detail here. So putting them back together into a single project, but want to be able to build the next app for deployment on Vercel, and a Node app for deployment on EC2 (for long running services).

3 Replies

Avatar
Golden-winged Warbler
npm/yarn workspaces are widely used for this
Avatar
Blanc de Hotot
I can guide you
Avatar
Yacare CaimanOP
Thanks. I think that is what I need.