File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ export async function renderToHTMLOrFlight(
751751 }
752752
753753 // TODO-APP: pass a shared cache from previous getStaticProps/getServerSideProps calls?
754- if ( layoutOrPageMod . getServerSideProps ) {
754+ if ( ! isClientComponentModule && layoutOrPageMod . getServerSideProps ) {
755755 // TODO-APP: recommendation for i18n
756756 // locales: (renderOpts as any).locales, // always the same
757757 // locale: (renderOpts as any).locale, // /nl/something -> nl
@@ -775,7 +775,7 @@ export async function renderToHTMLOrFlight(
775775 )
776776 }
777777 // TODO-APP: implement layout specific caching for getStaticProps
778- if ( layoutOrPageMod . getStaticProps ) {
778+ if ( ! isClientComponentModule && layoutOrPageMod . getStaticProps ) {
779779 const getStaticPropsContext :
780780 | GetStaticPropsContext
781781 | GetStaticPropContextPage = {
You can’t perform that action at this time.
0 commit comments