chore: updates all instances of getPayload in next to getPayloadHMR

This commit is contained in:
Jarrod Flesch
2024-05-14 14:14:42 -04:00
parent 1c30598c57
commit 61415a43fa
4 changed files with 983 additions and 990 deletions

View File

@ -1,9 +1,9 @@
import React from 'react'
import { getPayload } from 'payload'
import { getPayloadHMR } from '@payloadcms/next/utilities'
import configPromise from '@payload-config'
const Example: React.FC = async () => {
const payload = await getPayload({ config: configPromise })
const payload = await getPayloadHMR({ config: configPromise })
const url = payload.getAdminURL()
return <div>The admin panel is running at: {url}</div>
}