feat: implement HeroSection global configuration and integrate with Hero component
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user