chore: add home page with information on local API
This commit is contained in:
10
src/components/Example.tsx
Normal file
10
src/components/Example.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
import React from 'react'
|
||||
import { getPayload } from 'payload'
|
||||
|
||||
const Example: React.FC = async () => {
|
||||
const payload = await getPayload()
|
||||
const url = payload.config.serverURL
|
||||
return <div>The admin panel is running at: {url}</div>
|
||||
}
|
||||
|
||||
export default Example
|
Reference in New Issue
Block a user