import { headers as getHeaders } from 'next/headers.js' import Image from 'next/image' import { getPayload } from 'payload' import React from 'react' import { fileURLToPath } from 'url' import config from '@/payload.config' import './styles.css' export default async function HomePage() { const headers = await getHeaders() const payloadConfig = await config const payload = await getPayload({ config: payloadConfig }) const { user } = await payload.auth({ headers }) const fileURL = `vscode://file/${fileURLToPath(import.meta.url)}` return (
Payload Logo {!user &&

Welcome to your new project.

} {user &&

Welcome back, {user.email}

}
Go to admin panel Documentation

Update this page by editing

app/(frontend)/page.tsx
) }