From baf47934b0bb61bc907dc0cbe32108fad5914a84 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Fri, 12 Jun 2026 11:44:03 +0100 Subject: [PATCH] perf(seo): dynamic sitemap with CMS entries at runtime, lighter hero bg quality Co-Authored-By: Claude Fable 5 --- src/app/sitemap.ts | 3 +++ src/components/ui/PageHero.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 08c6166..acf6a83 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -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' diff --git a/src/components/ui/PageHero.tsx b/src/components/ui/PageHero.tsx index e1e8ab4..2006191 100644 --- a/src/components/ui/PageHero.tsx +++ b/src/components/ui/PageHero.tsx @@ -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" />