Error: getStaticPaths is required for dynamic SSG pages and is missing for “xxx”. NextJS
If you are creating a dynamic page eg: product/[slug].tsx then even if you don’t want to create any page on build time you need to create a getStaticPaths method to set the fallback property and let NextJS know what to do when the page you are trying to get doesn’t exist. export const getStaticPaths: GetStaticPaths<{ … Read more