You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use getStaticProps with this? I want to generate my pages statically using an API but as far as I can tell this will only work with nextjs if the pages I am generating via slugs are within the /pages directory with the [] syntax. Do you know an easy way I could accomplish this keeping the same structure you have or how it might need to be modified?
Thanks lot!
The text was updated successfully, but these errors were encountered:
Is there a way to use getStaticProps with this? I want to generate my pages statically using an API but as far as I can tell this will only work with nextjs if the pages I am generating via slugs are within the /pages directory with the [] syntax. Do you know an easy way I could accomplish this keeping the same structure you have or how it might need to be modified?
getStaticProps should work just fine. You would create new pages in the root pages directory and then render that page tree from the top down. Right now there's a catch-all route that you would just remove or override for specific pages if you want to use getStaticProps
Is there a way to use getStaticProps with this? I want to generate my pages statically using an API but as far as I can tell this will only work with nextjs if the pages I am generating via slugs are within the /pages directory with the [] syntax. Do you know an easy way I could accomplish this keeping the same structure you have or how it might need to be modified?
Thanks lot!
The text was updated successfully, but these errors were encountered: