vendor slugs routes instead of ids

This commit is contained in:
2026-01-27 16:56:57 -05:00
parent aa2f30c086
commit c6ff651f21
10 changed files with 247 additions and 120 deletions

View File

@@ -4,16 +4,16 @@ import { prisma } from '@/lib/prisma'
import { VendorDetailPage } from '@/components/vendor/VendorDetailPage'
interface PageProps {
params: {
id: string
}
params: {
slug: string
}
}
export default async function Page({ params }: PageProps) {
const { id } = params
const { slug } = params
const vendor = await prisma.vendor.findUnique({
where: { id },
where: { slug },
include: {
address: true,
events: {