export async function getStaticProps() {
        
        return {
        }
      }
      Typescript language logo
      your recipe card header background

      Next getStaticProps

      0

      2

      avatar
      Jose Romero
      next
      static
      getStaticProps
      ...
      Next TypeScript recipes

      To fetch this data on pre-render, Next.js allows you to export an async function called getStaticProps from the same file. This function gets called at build time and lets you pass fetched data to the page's props on pre-render.

      Library: next

      Shortcut: next.static.props.create

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.