CreateNextDiOptions · Next.js server API
type CreateNextDiOptions = object;Options for createNextDi.
Properties
Section titled “Properties”providers?
Section titled “providers?”readonly optional providers?: readonly Provider[];Providers registered once in the root server container.
readonly cache: RequestCache;React render cache, imported from react in a Next server file.
requestProviders?
Section titled “requestProviders?”readonly optional requestProviders?: () => readonly Provider[];Providers registered in each RSC render-scoped child container.
Returns
Section titled “Returns”readonly Provider[]