Beta

Payload 3.0 - 6 collections loaded

This BETA is rapidly evolving, you can report any bugs against the repo or in the dedicated channel in Discord. Payload is running at /admin. An example of a custom route running the Local API can be found at /my-route.

You can use the Local API in your server components like this:

import { getPayloadHMR } from '@payloadcms/next/utilities'
import config from '@payload-config'
const payload = await getPayloadHMR({ config })
const data = await payload.find({
  collection: 'pages',
})
return <Pages data={data} />

This is the example in action - here is a list of all page titles: