{
  "id": "nextjs/static-generation-timeout-generatestaticparams",
  "signature": "Error: Static generation timed out after 60 seconds for path '/[slug]'. Consider increasing the static generation timeout or using dynamic rendering.",
  "signature_zh": "错误：路径 '/[slug]' 的静态生成在 60 秒后超时。考虑增加静态生成超时时间或使用动态渲染。",
  "regex": "Static generation timed out after 60 seconds for path '/.*'\\. Consider increasing the static generation timeout or using dynamic rendering\\.",
  "domain": "nextjs",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The generateStaticParams function or the page rendering for a dynamic route took longer than the default 60-second timeout during static generation, often due to slow data fetching or excessive number of paths.",
  "root_cause_type": "generic",
  "root_cause_zh": "在静态生成期间，generateStaticParams 函数或动态路由的页面渲染耗时超过默认的 60 秒超时，通常是由于数据获取缓慢或路径过多。",
  "versions": [
    {
      "version": "Next.js 14.2.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Next.js 13.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This only masks the problem; if the underlying data fetch is slow, it may still timeout at higher limits.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This breaks the dynamic routing functionality and may not be feasible for content-driven sites.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Optimize generateStaticParams by caching API calls: const paths = await fetch('/api/paths', { next: { revalidate: 3600 } })",
      "success_rate": 0.85,
      "how": "Optimize generateStaticParams by caching API calls: const paths = await fetch('/api/paths', { next: { revalidate: 3600 } })",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use incremental static regeneration (ISR) with revalidate instead of full static generation: export const revalidate = 3600",
      "success_rate": 0.9,
      "how": "Use incremental static regeneration (ISR) with revalidate instead of full static generation: export const revalidate = 3600",
      "condition": "",
      "sources": []
    },
    {
      "action": "Switch to dynamic rendering for this page by removing generateStaticParams or adding export const dynamic = 'force-dynamic'",
      "success_rate": 0.95,
      "how": "Switch to dynamic rendering for this page by removing generateStaticParams or adding export const dynamic = 'force-dynamic'",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Optimize generateStaticParams by caching API calls: const paths = await fetch('/api/paths', { next: { revalidate: 3600 } })",
    "Use incremental static regeneration (ISR) with revalidate instead of full static generation: export const revalidate = 3600",
    "Switch to dynamic rendering for this page by removing generateStaticParams or adding export const dynamic = 'force-dynamic'"
  ],
  "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.84,
  "fix_success_rate": 0.87,
  "resolvable": "partial",
  "first_seen": "2024-07-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}