feat: add FeaturesSection global configuration and integrate with Features component

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