Failed to collect page data
Used in this guide:Next.js 15.3.4
Error:
ERROR: Failed to collect page data
Error:
Invalid URL
Error:
(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.