export const getStaticProps: GetStaticProps<HomePageProps, HomePageQuery> =
  async (ctx: GetStaticPropsContext<HomePageQuery>) => {
    if (!ctx.params) throw new Error('Cannot fetch org w/out params.');
    const [error, org] = await to(getOrg(ctx.params.org));
    if (error || !org) return { notFound: true, revalidate: 1 };