Array of strings
Unanswered
American black bear posted this in #help-forum
American black bearOP
Error: Invalid
paths value returned from getStaticPaths in /[...slug.tsz].paths must be an array of strings or objects of shape { params: [key: string]: string }tsx export const getStaticPaths: GetStaticPaths = async () => {
const ssg: SSGHelper = generateSSGHelper();
// Fetch all available category slugs
const paths = await ssg.category.getAllCategorySlugs
console.log(paths)
return { paths, fallback: false };
};1 Reply
American black bearOP
bruh how do i include trpc code here tho