Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

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

    return {
        props: {
             allProfiles
        }
   };
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Error #serializing #returned
ADD COMMENT
Topic
Name
2+4 =