This commit is contained in:
Mackie 2026-05-29 09:32:53 +08:00
parent f627a6ef89
commit 1da50d7bea
2 changed files with 3 additions and 4 deletions

View file

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

View file

@ -3,7 +3,6 @@ import sharp from 'sharp'
import path from 'path' import path from 'path'
import { buildConfig, PayloadRequest } from 'payload' import { buildConfig, PayloadRequest } from 'payload'
import { fileURLToPath } from 'url' import { fileURLToPath } from 'url'
import { Logo } from './components/Logo'
import { Categories } from './collections/Categories' import { Categories } from './collections/Categories'
import { Media } from './collections/Media' import { Media } from './collections/Media'
@ -29,7 +28,7 @@ export default buildConfig({
// Feel free to delete this at any time. Simply remove the line below. // Feel free to delete this at any time. Simply remove the line below.
beforeDashboard: ['@/components/BeforeDashboard'], beforeDashboard: ['@/components/BeforeDashboard'],
graphics: { graphics: {
Logo, Logo: '@/components/Logo#Logo', // ✅ string-based import
}, },
}, },
importMap: { importMap: {