Cross-topic view10 problems

Works Locally, Fails in Production

Problems that only appear after deploy — env, build, CORS, and runtime differences.

Cross-topic section

This view references problems owned by primary sections — no duplicate records. Owned by: Next.js, Django / Flask / FastAPI, Docker, Supabase / Firebase, Deployment / Production-Only Problems.

Next.jsintermediate

Next.js hydration error appears only after production build

Next.jsReact
DetailsAsk Puvexa
Next.jsintermediate

Next.js environment variable works locally but is undefined after deployment

Next.jsReact
DetailsAsk Puvexa
Next.jsintermediate

Next.js page works locally but returns 404 in production

Next.jsReact
DetailsAsk Puvexa
Next.jsintermediate

Next.js image loads locally but fails after deployment

Next.jsReact
DetailsAsk Puvexa
Python Webintermediate

FastAPI CORS works locally but fails after deployment

DjangoFlaskFastAPI
DetailsAsk Puvexa
Python Webintermediate

Flask app works locally but returns 502 behind Nginx

DjangoFlaskFastAPI
DetailsAsk Puvexa
Dockerintermediate

Docker container works locally but fails on server

Docker
DetailsAsk Puvexa
Backend-as-a-Serviceintermediate

Supabase OAuth redirect works locally but fails in production

SupabaseFirebaseOAuth
DetailsAsk Puvexa
Deploymentintermediate

Application works locally but fails immediately in production

Deployment
DetailsAsk Puvexa
Deploymentintermediate

Production database connection fails while manual connection works

Deployment
DetailsAsk Puvexa