Harden production deployment workflow

This commit is contained in:
Codex
2026-04-28 01:09:17 +08:00
parent c8ccaa9925
commit 46a72f815e
23 changed files with 243 additions and 21 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ async function getContactUsPageData(locale: Locale) {
return payload.findGlobal({
depth: 1,
locale,
slug: 'contactUsPage' as any,
slug: 'contactUsPage',
})
}
@@ -341,7 +341,7 @@ async function getDownloadsPageSettings(locale: Locale): Promise<DownloadsPageSe
return (await payload.findGlobal({
depth: 1,
locale,
slug: 'downloadsPage' as any,
slug: 'downloadsPage',
})) as DownloadsPageSettings
}
+1 -1
View File
@@ -2,7 +2,7 @@ import type { Metadata } from 'next'
import { NextIntlClientProvider } from 'next-intl'
import { getMessages, setRequestLocale } from 'next-intl/server'
import { notFound } from 'next/navigation'
import { isLocale, locales } from '@/i18n/config'
import { isLocale } from '@/i18n/config'
import { CookieConsent } from '@/components/site/cookie-consent'
import { ScrollToTop } from '@/components/site/scroll-to-top'
import { SiteHeader } from '@/components/site/site-header'
@@ -15,7 +15,7 @@ import { ProductContentTabs } from './product-content-tabs'
import { ProductGallerySection } from './product-gallery-section'
import { ProductTemplateMount } from './product-template-mount'
import { ProductVideosSection } from './product-videos-section'
import type { Media, News, NewsCategory, Product, ProductCategory, ProductReview, ProductVideo } from '@/payload-types'
import type { Media, News, NewsCategory, Product, ProductCategory, ProductReview } from '@/payload-types'
export const revalidate = 300
@@ -191,7 +191,7 @@ export default async function ProductsPage({
const payload = await getPayloadClient()
const page = await payload.findGlobal({
depth: 1,
slug: 'productsPage' as any,
slug: 'productsPage',
locale,
})
const categories = await payload.find({