feat: SEO cleanup, A11y, Next.js 16 dynamic routes, hide unverified content

This commit is contained in:
MichalC
2026-08-01 13:01:08 +02:00
parent 88cb4c516d
commit f07f2c2407
15 changed files with 59 additions and 398 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import { ArrowLeft, Phone, Zap, Wind, Volume2, Thermometer } from 'lucide-react'
import MultisplitContactForm from '@/components/shop/MultisplitContactForm';
interface Props {
params: { slug: string };
params: Promise<{ slug: string }>;
}
export async function generateStaticParams() {
@@ -18,7 +18,7 @@ export async function generateStaticParams() {
}
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const { slug } = params;
const { slug } = await params;
const product = getProductBySlug(slug);
if (!product) return { title: 'Produkt nie znaleziony' };
return {
@@ -28,7 +28,7 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
}
export default async function MultisplitInquiryPage({ params }: Props) {
const { slug } = params;
const { slug } = await params;
const product = getProductBySlug(slug);
if (!product || product.category !== 'multisplit') notFound();