perf(seo): dynamic sitemap with CMS entries at runtime, lighter hero bg quality
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-06-12 11:44:03 +01:00
parent 0d497b63a4
commit baf47934b0
2 changed files with 4 additions and 1 deletions

View file

@ -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'

View file

@ -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"
/>