Files
sitemente/app/demos/[vertical]/page.tsx
T
root 040655912c fix: /demos/[vertical] route with Next.js 15 params await
- Fix Next.js 15 params requirement (await params)
- Add minimal test for route redirect behavior
- Test verifies all 4 verticals redirect correctly
2026-02-19 12:24:38 +00:00

9 lines
345 B
TypeScript

import { redirect } from 'next/navigation';
// Next.js 15 requires params to be awaited
export default async function DemoVerticalPage({ params }: { params: Promise<{ vertical: string }> }) {
const { vertical } = await params;
// Redirect to the main demos page with the vertical as query param
redirect(`/demos?vertical=${vertical}`);
}