Skip to content

Commit

Permalink
Merge branch 'dev' into IN-982-location-org-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Aug 2, 2024
2 parents 91db1f7 + ad6eec5 commit 189f9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/app/src/pages/org/[slug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ export const getStaticPaths: GetStaticPaths = async () => {
paths: [],
fallback: true,
}
// }
}

export const getStaticProps: GetStaticProps<
Expand All @@ -261,13 +260,14 @@ export const getStaticProps: GetStaticProps<
redirect: {
permanent: true,
destination: `/org/${redirect.redirectTo}`,
revalidate: 60 * 60 * 24, // 1 day
},
}
}

const { id: orgId } = await ssg.organization.getIdFromSlug.fetch({ slug })
if (!orgId) {
return { notFound: true }
return { notFound: true, revalidate: 1 }
}

const [i18n] = await Promise.allSettled([
Expand Down

0 comments on commit 189f9a3

Please sign in to comment.