diff --git a/packages/next/server/app-render.tsx b/packages/next/server/app-render.tsx index 81b5bc6f2c82..b8ba02cc10f9 100644 --- a/packages/next/server/app-render.tsx +++ b/packages/next/server/app-render.tsx @@ -751,7 +751,7 @@ export async function renderToHTMLOrFlight( } // TODO-APP: pass a shared cache from previous getStaticProps/getServerSideProps calls? - if (layoutOrPageMod.getServerSideProps) { + if (!isClientComponentModule && layoutOrPageMod.getServerSideProps) { // TODO-APP: recommendation for i18n // locales: (renderOpts as any).locales, // always the same // locale: (renderOpts as any).locale, // /nl/something -> nl @@ -775,7 +775,7 @@ export async function renderToHTMLOrFlight( ) } // TODO-APP: implement layout specific caching for getStaticProps - if (layoutOrPageMod.getStaticProps) { + if (!isClientComponentModule && layoutOrPageMod.getStaticProps) { const getStaticPropsContext: | GetStaticPropsContext | GetStaticPropContextPage = {