perf(seo): dynamic sitemap with CMS entries at runtime, lighter hero bg quality
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
0d497b63a4
commit
baf47934b0
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,9 @@ import type { MetadataRoute } from 'next'
|
|||
import { getPayload } from 'payload'
|
||||
import configPromise from '@payload-config'
|
||||
|
||||
// Build runs without a DB — compute per request so blog/location URLs are included.
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL?.startsWith('https')
|
||||
? process.env.NEXT_PUBLIC_SITE_URL
|
||||
: 'https://shumiland.com.ua'
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export function PageHero({ title, subtitle, bgSrc, bgAlt, children }: PageHeroPr
|
|||
alt={bgAlt ?? title}
|
||||
fill
|
||||
priority
|
||||
quality={90}
|
||||
quality={75}
|
||||
sizes="100vw"
|
||||
className="object-cover"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue