Failed to collect page data
Used in this guide:Next.js 15.3.4
Loading...
ERROR: Failed to collect page data
Invalid URL
(input: 'undefined')
If you’re getting all of the above errors in Vercel log, it means means some code is constructing a URL from an env var that’s missing in the Vercel build env. So make sure to check all environment variables.