feat: implement HeroSection global configuration and integrate with Hero component

This commit is contained in:
ArraysID
2025-05-11 05:24:31 +07:00
parent c82d9bcc70
commit 18d11fd1c3
6 changed files with 209 additions and 50 deletions
+2
View File
@@ -5,6 +5,7 @@ import { buildConfig } from 'payload';
import sharp from 'sharp';
import { fileURLToPath } from 'url';
import { HeroSection } from './collections/HeroSection';
import { Media } from './collections/Media';
import { Users } from './collections/Users';
@@ -25,6 +26,7 @@ export default buildConfig({
},
},
collections: [Users, Media],
globals: [HeroSection],
editor: lexicalEditor(),
secret: process.env.CMS_SECRET || '',
typescript: {