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

      Next getStaticProps

      next
      static
      getStaticProps
      ...
      NextJS Javascript 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

      Filename pattern: *pages/*.tsx

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.