feat: implement HeroSection global configuration and integrate with Hero component

This commit is contained in:
ArraysID
2025-05-10 03:32:19 +07:00
parent f31aad8570
commit 7b490702b9
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: {