Answers for "Error serializing `.list Data` returned from `getStaticProps`"

0

Error serializing `.list Data` returned from `getStaticProps`

export async function getStaticProps() {
    const profiles = await getAllBusinessProfiles();
    const allProfiles = JSON.stringify(profiles)

    return {
        props: {
             allProfiles
        }
   };
}
Posted by: Guest on October-07-2021

Code answers related to "Error serializing `.list Data` returned from `getStaticProps`"

Code answers related to "Javascript"

Browse Popular Code Answers by Language