Next.js pre-renders pages during build. With POSTGRES_URL exported, Server Components try to query DB tables that don't exist yet (migrations run after build), causing the build to hang indefinitely. Docker build does NOT set POSTGRES_URL and sets CI=true to skip env validation. Match that behavior.
2.3 KiB
2.3 KiB