DEV Community

Discussion on: A gotcha with Next.js production builds in Docker Compose

Collapse
 
vsaw profile image
Valentin Sawadski (he/him)

Hm, to me this sounds like you have to check how you get your props. NextJS has different hooks to populate page data at build or runtime (see nextjs.org/docs/basic-features/dat...) and you should check that any data really is available at build time, otherwise you should use nextjs.org/docs/basic-features/dat... instead.