How to create a JSON available to all server components at build time?
Unanswered
Brown bear posted this in #help-forum
Brown bearOP
Hi, I have the need to perform a big data fetch that builds a big reference map to be used by server components at build time. What's the best way to achieve it?
how would I do this?
import data from '.data.js' //this is fetched during build
export default function Component({id}) {
return <>{data[id]}</>
}how would I do this?