File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/next/pages/foos/[id] Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
4141
4242export const getStaticPaths : GetStaticPaths = async ( ) => {
4343 const response = await fetch ( "/{{{name}}}" ) ;
44- const paths = getPathsFromHydraResponse ( response , true ) ;
44+ const paths = await getPathsFromHydraResponse ( response , true ) ;
4545 return {
4646 paths,
4747 fallback :true
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
4545}
4646export const getStaticPaths : GetStaticPaths = async ( ) => {
4747 const response = await fetch ( "/{{{name}}}" ) ;
48- const paths = getPathsFromHydraResponse ( response , false ) ;
48+ const paths = await getPathsFromHydraResponse ( response , false ) ;
4949 return {
5050 paths,
5151 fallback :true
You can’t perform that action at this time.
0 commit comments