errors/now-next-routes-manifest.md
This error occurs when the Next.js build output directory is missing, empty, or misconfigured. The most common causes are:
In the Vercel dashboard, open your "Project Settings" and check "Build & Development Settings":
next build. If this command is not overridden but you are seeing this error, double check that your build script in package.json calls next build. If buildCommand exists in vercel.json, make sure it calls next build.distDir in next.config.js. If outputDirectory exists in vercel.json, remove that property.next export users: do not override the "Output Directory", even if you customized the next export output directory. It will automatically detect the correct output.If you're using Turborepo, ensure your turbo.json includes the Next.js build output in the task outputs:
{
"tasks": {
"build": {
"outputs": [".next/**", "!.next/cache/**"]
}
}
}
If you've customized distDir in your next.config.js, replace .next with your custom directory name.
Common Turborepo issues:
outputs configuration causes the build artifacts to not be cached/restored properlyoutputs: [] will exclude all outputs from the cacheoutputs after changing distDir in Next.js configIn rare scenarios, this error can be caused by a Next.js build failure (if your "Build Command" accidentally returns an exit code that is not 0). Double check for any error messages above the Routes Manifest error, which may provide additional details.