Skip to content

Commit

Permalink
fix(next): initialize payload with importMap (#9297)
Browse files Browse the repository at this point in the history
### What?
Custom providers could not be resolved because payload was not
initialized in the Root layout with the importMap passed in from props.

### How?
Pass importMap from props into the getPayload function in the Root
layout.
  • Loading branch information
JarrodMFlesch authored Nov 18, 2024
1 parent 5503afd commit 58ac784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/layouts/Root/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const RootLayout = async ({
headers,
})

const payload = await getPayload({ config })
const payload = await getPayload({ config, importMap })

const { i18n, permissions, user } = await initReq(config)

Expand Down

0 comments on commit 58ac784

Please sign in to comment.