If a page reads from your database, render it on demand, not during the build. Prerendering it means your build container needs a route to Postgres, and on self-hosted infrastructure that route is the most host-specific thing you own. We learned this by paying for it. What we were doing This site runs Next.js with Payload CMS in-process, on... Weiterlesen: Your Next.js build should not need your database
Intelligence View
⚡ tsecurity.de Intelligence
Your Next.js build should not need your database
If a page reads from your database, render it on demand, not during the build. Prerendering it means your build container needs a route to Postgres, and on…