- All 8 home page sections: Hero, Locations slider, WhyParents accordion, Birthday pricing cards, Video, Gallery, Reviews slider, News - UI components: NavLink, BtnPrimary, BtnGradient, BtnDetails, AccordionItem - Layout: sticky Header (NavLink + BtnPrimary), Footer with logo - Figma Code Connect: 5 components published (.figma.tsx + figma.config.json) - Public assets: all Figma images and SVGs exported - Pages: /kvytky, /lokatsii, /blog, /dni-narodzhennia, /grupovi-vidviduvannia - Tests: Vitest unit/api suites, Playwright e2e screenshots - Payload CMS: blocks, collections, seed data updates - Hero negative-margin to extend behind sticky header - Custom Tailwind breakpoints: lg=1440px, xl=1920px - Fix ESLint config: drop FlatCompat, use eslint-config-next flat export - Add tsconfig.tsbuildinfo, test-results/, agentdb.rvf* to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
72 lines
2 KiB
TypeScript
72 lines
2 KiB
TypeScript
import { buildConfig } from 'payload'
|
|
import { postgresAdapter } from '@payloadcms/db-postgres'
|
|
import { lexicalEditor } from '@payloadcms/richtext-lexical'
|
|
import sharp from 'sharp'
|
|
import path from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
import { Users } from './src/collections/Users'
|
|
import { Media } from './src/collections/Media'
|
|
import { Pages } from './src/collections/Pages'
|
|
import { BlogPosts } from './src/collections/BlogPosts'
|
|
import { Categories } from './src/collections/Categories'
|
|
import { Tags } from './src/collections/Tags'
|
|
import { Tariffs } from './src/collections/Tariffs'
|
|
import { Leads } from './src/collections/Leads'
|
|
import { Orders } from './src/collections/Orders'
|
|
|
|
import { HomePage } from './src/globals/HomePage'
|
|
import { CheckoutPage } from './src/globals/CheckoutPage'
|
|
import { ThankYouPage } from './src/globals/ThankYouPage'
|
|
import { Header } from './src/globals/Header'
|
|
import { Footer } from './src/globals/Footer'
|
|
import { SiteSettings } from './src/globals/SiteSettings'
|
|
|
|
const filename = fileURLToPath(import.meta.url)
|
|
const dirname = path.dirname(filename)
|
|
|
|
const siteURL = process.env['NEXT_PUBLIC_SITE_URL'] ?? 'http://localhost:3000'
|
|
|
|
export default buildConfig({
|
|
secret: process.env['PAYLOAD_SECRET']!,
|
|
serverURL: siteURL,
|
|
|
|
db: postgresAdapter({
|
|
pool: {
|
|
connectionString: process.env['DATABASE_URL']!,
|
|
},
|
|
push: process.env['NODE_ENV'] !== 'production',
|
|
migrationDir: path.resolve(dirname, 'migrations'),
|
|
}),
|
|
|
|
editor: lexicalEditor(),
|
|
sharp,
|
|
|
|
collections: [Users, Media, Pages, BlogPosts, Categories, Tags, Tariffs, Leads, Orders],
|
|
|
|
globals: [HomePage, CheckoutPage, ThankYouPage, Header, Footer, SiteSettings],
|
|
|
|
admin: {
|
|
user: 'users',
|
|
livePreview: {
|
|
url: siteURL,
|
|
collections: ['pages'],
|
|
globals: [
|
|
'home-page',
|
|
'checkout-page',
|
|
'thank-you-page',
|
|
'header',
|
|
'footer',
|
|
'site-settings',
|
|
],
|
|
},
|
|
},
|
|
|
|
cors: [siteURL],
|
|
|
|
typescript: {
|
|
outputFile: path.resolve(dirname, 'src/payload-types.ts'),
|
|
},
|
|
|
|
telemetry: false,
|
|
})
|