Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix blog metadata (#19530)

Francesco Sansalvadore082022158c63
diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsx
index 688d40e83c0..d9aabdc3ae8 100644
--- a/apps/www/pages/blog/[slug].tsx
+++ b/apps/www/pages/blog/[slug].tsx
@@ -119,16 +119,11 @@ export const getStaticProps: GetStaticProps<BlogPostPageProps, Params> = async (
}
function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
- const [isMounted, setIsMounted] = useState(false)
const content = props.blog.content
const authorArray = props.blog.author.split(',')
useActiveAnchors('h2, h3, h4', '.prose-toc a')
const isLaunchWeek7 = props.blog.launchweek === 7
- useEffect(() => {
- setIsMounted(true)
- }, [])
-
const author = authorArray
.map((authorId) => {
return authors.find((author) => author.author_id === authorId)
@@ -191,8 +186,6 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
url: `https://supabase.com/blog/${props.blog.slug}`,
}
- if (!isMounted) return null
-
return (
<>
<NextSeo