Next.js Discord

Discord Forum

Problem with deploying a monorepo to vercel (with custom backend)

Unanswered
Tonkinese posted this in #help-forum
Open in Discord
TonkineseOP
I have a nextjs frontend and a fastify backend using turbo
I currently deploy to a VPS where i use fastify to serve the built nextjs static files and it works just fine.

Having trouble though doing the same setup with vercel

i currently have something like
{
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/apps/server/src/index.ts"
    }
  ]
}


but im getting this error when building: Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.

0 Replies