feat: add CommunitiesSection configuration and integrate with Community component

This commit is contained in:
ArraysID
2025-05-10 05:35:24 +07:00
parent aad04b6f94
commit 07a1eb8dbc
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: {