{
  "id": "nextjs/static-generation-timeout-slug",
  "signature": "Error: Static generation timed out after 60 seconds for path '/[slug]'. Consider increasing the static generation timeout.",
  "signature_zh": "错误：路径 '/[slug]' 的静态生成在 60 秒后超时。考虑增加静态生成超时时间。",
  "regex": "Static generation timed out after \\d+ seconds for path '.*'\\.",
  "domain": "nextjs",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "During static generation (e.g., with `output: export` or `generateStaticParams`), a page takes longer than the default 60-second timeout to render, often due to slow data fetching or heavy computation.",
  "root_cause_type": "generic",
  "root_cause_zh": "在静态生成期间（例如，使用 `output: export` 或 `generateStaticParams`），页面渲染时间超过默认的 60 秒超时，通常由于数据获取缓慢或计算量大。",
  "versions": [
    {
      "version": "Next.js 13.3+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Next.js 14.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Next.js 15.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This prevents static generation entirely, but if the project requires static export (`output: export`), dynamic rendering is not allowed.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "It only masks the issue; if the underlying cause (slow data fetch) isn't fixed, builds become unreasonably long.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Breaking change: without it, dynamic routes won't be pre-rendered for static export, causing build failures.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase the timeout in next.config.js: `module.exports = { staticGenerationTimeout: 120 }`",
      "success_rate": 0.8,
      "how": "Increase the timeout in next.config.js: `module.exports = { staticGenerationTimeout: 120 }`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Optimize data fetching in the page: use caching, limit the number of items in `generateStaticParams`, or use incremental static regeneration.",
      "success_rate": 0.9,
      "how": "Optimize data fetching in the page: use caching, limit the number of items in `generateStaticParams`, or use incremental static regeneration.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Increase the timeout in next.config.js: `module.exports = { staticGenerationTimeout: 120 }`",
    "Optimize data fetching in the page: use caching, limit the number of items in `generateStaticParams`, or use incremental static regeneration."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://nextjs.org/docs/messages/static-generation-timeout",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.75,
  "resolvable": "partial",
  "first_seen": "2023-08-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}