Answers for "getstaticpaths is required for dynamic ssg"

0

getstaticpaths is required for dynamic ssg

export const getStaticPaths: GetStaticPaths<{ slug: string }> = async () => {

    return {
        paths: [], //indicates that no page needs be created at build time
        fallback: 'blocking' //indicates the type of fallback
    }
}
Posted by: Guest on April-30-2021

Code answers related to "getstaticpaths is required for dynamic ssg"

Browse Popular Code Answers by Language