diff --git a/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts b/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts index 8d7d94a02f32e..e4826c61b0f88 100644 --- a/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts +++ b/packages/next/build/webpack/loaders/next-middleware-ssr-loader/index.ts @@ -1,6 +1,6 @@ import { stringifyRequest } from '../../stringify-request' -export default async function middlewareRSCLoader(this: any) { +export default async function middlewareSSRLoader(this: any) { const { absolutePagePath, absoluteAppPath, diff --git a/packages/next/server/render.tsx b/packages/next/server/render.tsx index a132e0e98792e..055650636c1df 100644 --- a/packages/next/server/render.tsx +++ b/packages/next/server/render.tsx @@ -419,7 +419,8 @@ export async function renderToHTML( !hasPageGetInitialProps && defaultAppGetInitialProps && !isSSG && - !getServerSideProps + !getServerSideProps && + !concurrentFeatures for (const methodName of [ 'getStaticProps',