The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix tags
Francesco Sansalvadoref093b7387322
diff --git a/apps/www/_blog/2021-07-26-epsilon3-self-hosting.mdx b/apps/www/_blog/2021-07-26-epsilon3-self-hosting.mdxindex f5005583c8f..905bbccdeb2 100644--- a/apps/www/_blog/2021-07-26-epsilon3-self-hosting.mdx+++ b/apps/www/_blog/2021-07-26-epsilon3-self-hosting.mdx@@ -8,7 +8,7 @@ authorURL: https://github.com/roryw10image: epsilon3/og-epsilon3.jpgthumb: epsilon3/cover-epsilon3.jpgtags:- - case-study+ - supabasedate: '2021-07-26'toc_depth: 2---diff --git a/apps/www/layouts/comparison.tsx b/apps/www/layouts/comparison.tsxindex 0d55186d0f6..020d31e2559 100644--- a/apps/www/layouts/comparison.tsx+++ b/apps/www/layouts/comparison.tsx@@ -72,7 +72,7 @@ const LayoutComparison = ({ components, props }: Props) => {// to do: author urls should be internal in future// currently we have external links to github profilesauthors: [props.blog.author_url],- tags: props.blog.tags.map((cat: string) => {+ tags: props.blog.tags?.map((cat: string) => {return cat}),},diff --git a/apps/www/lib/posts.tsx b/apps/www/lib/posts.tsxindex c0a7fad040f..82b0ba2df6a 100644--- a/apps/www/lib/posts.tsx+++ b/apps/www/lib/posts.tsx@@ -78,7 +78,7 @@ export const getSortedPosts = (if (tags) {sortedPosts = sortedPosts.filter((post: any) => {- const found = tags.some((tag: any) => post.tags.includes(tag))+ const found = tags.some((tag: any) => post.tags?.includes(tag))return found})}@@ -151,7 +151,7 @@ export const getAllCategories = (directory: Directories) => {posts.map((post: any) => {// add tags into categories array- post.tags.map((tag: string) => {+ post.tags?.map((tag: string) => {if (!categories.includes(tag)) return categories.push(tag)})})diff --git a/apps/www/pages/blog.tsx b/apps/www/pages/blog.tsxindex e5a4e1740c8..be68f700722 100644--- a/apps/www/pages/blog.tsx+++ b/apps/www/pages/blog.tsx@@ -26,7 +26,7 @@ export async function getStaticProps() {fs.writeFileSync('./public/rss.xml', rss)// generate a series of rss feeds for each author (for PlanetPG)- const planetPgPosts = allPostsData.filter((post: any) => post.tags.includes('planetpg'))+ const planetPgPosts = allPostsData.filter((post: any) => post.tags?.includes('planetpg'))const planetPgAuthors = planetPgPosts.map((post: any) => post.author.split(','))const uniquePlanetPgAuthors = new Set([].concat(...planetPgAuthors))@@ -73,7 +73,7 @@ function Blog(props: any) {category === 'all'? shiftedBlogs: props.blogs.filter((post: any) => {- const found = post.tags.includes(category)+ const found = post.tags?.includes(category)return found}))diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsxindex e58397f1502..1b1fcbd5b8b 100644--- a/apps/www/pages/blog/[slug].tsx+++ b/apps/www/pages/blog/[slug].tsx@@ -110,7 +110,7 @@ function BlogPostPage(props: any) {<div className="space-y-8 py-8 lg:py-0"><div><div className="flex flex-wrap gap-2">- {props.blog.tags.map((tag: string) => {+ {props.blog.tags?.map((tag: string) => {return (<a href={`/blog/tags/${tag}`} key={`category-badge-${tag}`}><Badge>{tag}</Badge>@@ -164,7 +164,7 @@ function BlogPostPage(props: any) {// to do: author urls should be internal in future// currently we have external links to github profilesauthors: [props.blog.author_url],- tags: props.blog.tags.map((cat: string) => {+ tags: props.blog.tags?.map((cat: string) => {return cat}),},diff --git a/apps/www/pages/customers/index.tsx b/apps/www/pages/customers/index.tsxindex edda1a31441..171e61b53ba 100644--- a/apps/www/pages/customers/index.tsx+++ b/apps/www/pages/customers/index.tsx@@ -50,7 +50,7 @@ function CustomerStoriesPage(props: any) {category === 'all'? props.blogs: props.blogs.filter((post: any) => {- const found = post.tags.includes(category)+ const found = post.tags?.includes(category)return found}))diff --git a/apps/www/pages/open-source/index.tsx b/apps/www/pages/open-source/index.tsxindex e4f9b46e254..2ab0fa1f97a 100644--- a/apps/www/pages/open-source/index.tsx+++ b/apps/www/pages/open-source/index.tsx@@ -94,7 +94,7 @@ const OpenSource = () => {</div><div className="grid lg:grid-cols-2 gap-4">{maintainers- .filter((x) => activePill == 'All' || x.tags.includes(activePill))+ .filter((x) => activePill == 'All' || x.tags?.includes(activePill)).sort((a, b) => a.handle.localeCompare(b.handle)).map((x, idx) => (<div className="" key={idx}>