This commit is contained in:
Mackie 2026-05-29 02:32:59 +08:00
parent 7a58260abd
commit 3a9c5408c3
2 changed files with 6 additions and 0 deletions

3
src/components/Logo.tsx Normal file
View file

@ -0,0 +1,3 @@
export const Logo = () => (
<img src="public/favicon.svg" alt="My Logo" style={{ height: 40 }} />
)

View file

@ -3,6 +3,7 @@ import sharp from 'sharp'
import path from 'path'
import { buildConfig, PayloadRequest } from 'payload'
import { fileURLToPath } from 'url'
import { Logo } from './components/Logo'
import { Categories } from './collections/Categories'
import { Media } from './collections/Media'
@ -27,6 +28,8 @@ export default buildConfig({
// The `BeforeDashboard` component renders the 'welcome' block that you see after logging into your admin panel.
// Feel free to delete this at any time. Simply remove the line below.
beforeDashboard: ['@/components/BeforeDashboard'],
Logo,
},
},
importMap: {
baseDir: path.resolve(dirname),