#one more thing
1 messages · Page 1 of 1 (latest)
the generate static params isnt working in the nested dynamic page
export async function generateStaticParams() {
return servicesInfo.map((info) => ({
info: info.id,
}))
}
export default async function Info({ params }: { params: { info: string } }) {
const sth = servicesInfo.find((service) => service.id == params.info);
return (
<div className="min-h-screen px-4 lg:px-20 py-20 lg:py-32">
<div className="mb-10">
<Link href="/" className="flex items-center gap-1 text-lg font-medium">
<span>
<Arrow />
</span>
Home
</Link>
here is some of it