Next getStaticPaths

    0

    0

    Jose Romero

    nextcreatestaticβ€’β€’β€’
    Next TypeScript recipes

    So your page paths that are pre-rendered depend on external data. To handle this, Next.js lets you export an async function called getStaticPaths from a dynamic page. This function gets called at build time and lets you specify which paths you want to pre-render.

    Library: next

    Shortcut: next.static.paths.create

    export async function getStaticPaths() {
    	
      return {
      }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.