{"record":{"id":"b5e29969b4641b0c","repo":"vercel/next.js","slug":"getserversideprops-cannot-be-used-with-output-ex","errorCode":null,"errorMessage":"getServerSideProps cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export","messagePattern":"getServerSideProps cannot be used with \"output: export\"\\. See more info here: https://nextjs\\.org/docs/advanced-features/static-html-export","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/server/render.tsx","lineNumber":589,"sourceCode":"      getCacheControlHeader({ revalidate: false, expire: expireTime })\n    )\n    isAutoExport = false\n  }\n\n  if (hasPageGetInitialProps && isSSG) {\n    throw new Error(SSG_GET_INITIAL_PROPS_CONFLICT + ` ${pathname}`)\n  }\n\n  if (hasPageGetInitialProps && getServerSideProps) {\n    throw new Error(SERVER_PROPS_GET_INIT_PROPS_CONFLICT + ` ${pathname}`)\n  }\n\n  if (getServerSideProps && isSSG) {\n    throw new Error(SERVER_PROPS_SSG_CONFLICT + ` ${pathname}`)\n  }\n\n  if (getServerSideProps && renderOpts.nextConfigOutput === 'export') {\n    throw new Error(\n      'getServerSideProps cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'\n    )\n  }\n\n  if (getStaticPaths && !pageIsDynamic) {\n    throw new Error(\n      `getStaticPaths is only allowed for dynamic SSG pages and was found on '${pathname}'.` +\n        `\\nRead more: https://nextjs.org/docs/messages/non-dynamic-getstaticpaths-usage`\n    )\n  }\n\n  if (!!getStaticPaths && !isSSG) {\n    throw new Error(\n      `getStaticPaths was added without a getStaticProps in ${pathname}. Without getStaticProps, getStaticPaths does nothing`\n    )\n  }\n\n  if (isSSG && pageIsDynamic && !getStaticPaths) {","sourceCodeStart":571,"sourceCodeEnd":607,"githubUrl":"https://github.com/vercel/next.js/blob/89d017eac43ebf4742ed2b58d3c1373b70283b69/packages/next/src/server/render.tsx#L571-L607","documentation":"Config-combination guard in renderToHTMLImpl: the page exports getServerSideProps (per-request server rendering) while nextConfig.output === 'export', which produces a purely static bundle with no runtime server. These are fundamentally incompatible, so render-time validation rejects the combination; the data-fetching method must be changed or the output mode removed.","triggerScenarios":"Thrown at packages/next/src/server/render.tsx:591 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove `getServerSideProps` from the page, or remove `output: \"export\"` from next.config if server rendering is needed.","Migrate to `getStaticProps`/`getStaticPaths` if the data can be fetched at build time."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89d017eac43ebf4742ed2b58d3c1373b70283b69","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}