"no-store" vs "force-dynamic" at build time
Unanswered
darkej posted this in #help-forum
darkejOP
I have a page where there are only one
fetch. Data are not accasible during build so I want to set this fetch to by dynamic (fetch at request time). I set fetch(url, { cache: "no-store"}). To my surprise, despite setting this option next trying to do this fetch at build time. They only way that I have found to prevent fetching during build is -> export const dynamic = "force-dynamic";. Can some one explain me why is this happening ? Is there a way to do fetch() at runtime instead of build time ? My data are in internal network so they are not available during build and I can't do build inside this internal network because npm install will fail (network is closed to the outside). Because of that for now I can't use cache at all. Every page I had to set as force-dynamic.