NEXT JS errors

PHOTO EMBED

Thu Feb 24 2022 13:01:17 GMT+0000 (Coordinated Universal Time)

Saved by @patryshka

export const getStaticProps = async () => {
  try {
    const { data, errors } = await someQuery();
    if (errors || !data) {
      return { notFound: true };
    }
    return { props: { data } };
  } catch () {
    return { notFound: true };
  }
};
content_copyCOPY