Platform
Cursor fixes
Production errors in apps written with Cursor, from env vars to server crashes.
Cursor writes the code; it doesn’t host it. So the errors on this page come from wherever the app runs: Vercel or Netlify builds, Supabase Auth and Row Level Security, Stripe webhooks and AI API keys. The usual Cursor-specific trap is code that works on localhost with a local .env and breaks once deployed, because the host doesn’t have the same variables. Start with these three:
Lovable vs Bolt vs Cursor · Lovable vs Bolt vs Cursor: which is easiest to fix?
89 fixes: 20 in full, then 69 more by title.
Top Cursor fixes
- Supabase signup_disabled: new accounts are turned off
Sign-up returns signup_disabled? Supabase's general Auth settings include Allow new users to sign up. When that is off, only existing users can sign in.
- 500: INTERNAL_SERVER_ERROR / FUNCTION_INVOCATION_FAILED on Vercel
Investigate a Vercel function failure using runtime logs, environment checks, Node compatibility, database connections and local reproduction.
- Vercel custom domain shows "Invalid Configuration"
Added your domain to Vercel and it says Invalid Configuration? Set the DNS records Vercel shows at your registrar and wait for DNS.
- permission denied for table (Supabase error 42501)
Supabase "permission denied for table"? The role lacks a GRANT on the table, which is checked before RLS. Add the grant, then a policy.
- Hydration failed because the server rendered HTML didn't match the client
Next.js "Hydration failed" error? The server and browser drew different HTML. Fix nesting, window/localStorage use and dates.
More Cursor fixes
Older or narrower fixes for Cursor. Titles only.
- too many connections / remaining connection slots are reserved (Supabase + serverless)
- Prisma on Vercel: query engine not found
- next/image Un-configured Host
- Invalid "use server" Value
- Failed to find Server Action
- Claude API 401 authentication_error
- Vercel won't deploy a commit because it can't verify the commit author
- Claude API 400: This model does not support assistant message prefill
- Claude API 400: thinking.type.enabled is not supported for this model
- OpenAI API 503: Model temporarily overloaded (server_is_overloaded)
- ReferenceError: window is not defined
- Supabase Auth over_request_rate_limit (429 Too Many Requests)
- Next.js Prerender Error during next build
- Next.js: NextRouter was not mounted
- Next.js: the middleware file convention is deprecated, use proxy
- Supabase Auth flow_state_not_found or flow_state_expired
- Next.js: Missing Root Layout tags (html and body)
- Next.js: Using Node.js modules in Edge Runtime (Proxy or Middleware)
- 502 Bad Gateway / NO_RESPONSE_FROM_FUNCTION on Vercel
- Event handlers cannot be passed to Client Component props
- Serverless Function has exceeded the unzipped maximum size of 250 MB
- Supabase Security Advisor warnings explained
- Supabase Edge Function CORS error: Response to preflight request doesn't pass access control check
- infinite recursion detected in policy for relation
- Supabase insert works, .select() returns 42501
- Supabase Storage upload fails: new row violates row-level security policy
- Supabase Storage images not loading
- OpenAI API 429: You exceeded your current quota / rate limit reached
- Anthropic or Gemini API 429 and overloaded errors
- Invalid JWT after switching to sb_publishable or sb_secret keys
- Build failed: npm ERR! ERESOLVE
- Supabase error: JWT expired
- Supabase data loads only after a refresh
- TypeError: Failed to fetch (only in production)
- Supabase error: Email address not authorized
- Stripe secret key (sk_live_, sk_test_, or rk_) is in the front-end code
- AWS access key (AKIA) is in the front-end code
- Next.js: a client hook was used in a Server Component
- Next.js: useSearchParams() is missing a Suspense boundary
- Next.js: params, searchParams, or cookies() must be awaited
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE
- Firestore request failed because security rules denied it
- Firebase auth/unauthorized-domain after deploy
- Supabase PGRST116: .single() did not get exactly one row
- Stripe secret_key_required: a publishable key called a secret API
- Stripe customer portal session will not open
- Supabase otp_expired: OTP code for this sign-in has expired
- Supabase email_not_confirmed: Signing in is not allowed for this user as the email address is not confirmed
- Stripe api_key_expired: The API key provided has expired
- Next.js Security Update for Upstream Vulnerabilities
- Next.js: a Client Component cannot be async
- Supabase PGRST205: the table in the request URI was not found
- Stripe parameter_unknown: the request has unexpected parameters
- OpenAI API 401: Incorrect API key provided
- Supabase Auth invalid_credentials
- Supabase: Database error saving new user
- Vercel: Lost Git repository access, pushes no longer deploy
- Content Security Policy (CSP) header not set, or missing CSP directives
- X-Frame-Options header not set
- X-Content-Type-Options header missing
- CORS: Content-Type application/json is not safelisted and triggers a preflight
- Edge Function returned a non-2xx status code
- User already registered
- Supabase returns an empty array [] but the table has data
- How to check that Row Level Security is on for every Supabase table
- Blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present
- Module not found: Can't resolve (build works locally, fails on Vercel)
- Error 400: redirect_uri_mismatch (Sign in with Google)
- Stripe error: No such price / No such customer (resource_missing)
Keep going on your own.
The guides stay free. A deep leak report is $15. Fix packs are $24, or $49 for all three. There is no done-for-you repair.