feat: add CommunitiesSection configuration and integrate with Community component

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