Next.js Discord

Discord Forum

Vercel deployment issue: next App has client (root) and server dirs.

Unanswered
dro_v4.2.0 posted this in #help-forum
Open in Discord
Hi there,

Kindly looking for assistance or direction. I built an app in Foobar dir that has client and server directories. Locally I run 'npm run dev' for client dir and 'npm run start' for server dir which works fine.

My issue comes to when I want to deploy on vercel. I obviously point vercel to client as the root because next files/code are in there. Now for the server dir where all the other nitty gritties are like auth and so forth is not up or better question,

How would I include the server dir when I build for deployment during that process? #vercel-help

0 Replies