📜  动态 ssg 需要 getstaticpaths - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:32.752000             🧑  作者: Mango

代码示例1
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
    }
}