{ "detected": { "platform": "Vercel", "framework": "Next.js", "package_manager": "npm", "node": null }, "lines": 10, "primary": "missing-env", "first_error": { "line": 6, "text": "Error: supabaseUrl is required." }, "matches": [ { "id": "missing-env", "title": "Environment variable missing at build time", "line": 6, "excerpt": "Error: supabaseUrl is required.", "cause": "A required environment variable is not set for this build (the log names 'supabaseUrl'). Values in your local .env file are not uploaded to the host.", "fix": [ "Add the variable in the host's project settings, under Environment Variables, for the environment that failed (Production or Preview).", "Variables with NEXT_PUBLIC_ or VITE_ prefixes are baked in at build time, so redeploy after adding them.", "If the code reads it at import time (top of a file), it also runs during build. Move the read inside the function that needs it." ] }, { "id": "prerender-error", "title": "A page failed while being prerendered", "line": 8, "excerpt": "Error occurred prerendering page \"/pricing\".", "cause": "Next.js renders '/pricing' at build time and it threw. Usually a fetch to your own API (not running during build), a missing env var, or data that is undefined at build time.", "fix": [ "Read the error just above this line in the log; it names the real cause.", "Do not fetch your own /api routes from server components. Call the function directly.", "If the page needs request-time data, mark it dynamic: export const dynamic = 'force-dynamic'." ] } ] }