```export default async function Page

export default async function Page() {
return (
<div
className={
"flex flex-col justify-center items-center min-h-screen py-2 w-full"
}
>
test
</div>
);
}
export default async function Page() {
return (
<div
className={
"flex flex-col justify-center items-center min-h-screen py-2 w-full"
}
>
test
</div>
);
}
3 Replies
SeeringPhil
SeeringPhil9mo ago
There are other parameters necessary to make sure it's treated as a static page. If you add export const dynamicParams = false at the top of your page.tsx file, it should correctly detect it and prerender.
Nob
NobOP9mo ago
seem like its my layout that nextjs dont like ahhh its clerk that made my whole app dynamic @SeeringPhil But isn't it still calling the worker on request ?
James
James9mo ago
yes it still calls the worker on each request to a route, but if a route was prerendered, the html file will instantly be returned instead of a route being SSR'd at runtime

Did you find this page helpful?