Next.js Discord

Discord Forum

[Vercel]: TurboRepo x Next.js: I can't get next.js to deploy using turborepo

Unanswered
Paul posted this in #help-forum
Open in Discord
When I try to deploy using turborepo + next.js canary.55, I end up with the errors (as seen in the attached file)

Error: The file "/vercel/path0/.next/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project.


I have also attached images of my vercel configurations.

Has anyone experienced this, and maybe know how I can solve it?

2 Replies

In the above posted example my root direct was set to the base of the repository,

When my root directory is set to apps/dashboard I get:
build: > Build error occurred
build: [Error: Failed to collect page data for /logout] { type: 'Error' }
build: error: script "build" exited with code 1
build: ERROR: command finished with error: command (/vercel/path0/apps/dashboard/) /bun1/bun run build exited (1)
build: command (/vercel/path0/apps/dashboard/) /bun1/bun run build exited (1)
  Tasks:    0 successful, 1 total
 Cached:    0 cached, 1 total
   Time:    4m21.738s 
Summary:    /vercel/path0/apps/dashboard/.turbo/runs/2xiNPu0X3S96guj8xv3MVTrxJHF.json
 Failed:    //#build
 ERROR  run failed: command  exited (1)
Error: Command "turbo run build" exited with 1
is this a next.js issue or vercel issue, or turborepo issue? not sure where I should post it.