The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add og images to customer stories pages
Francesco Sansalvadore6bbcb24cb52d
diff --git a/apps/www/_customers/epsilon3.mdx b/apps/www/_customers/epsilon3.mdxindex 07dc59411e0..6bfeeb26078 100644--- a/apps/www/_customers/epsilon3.mdx+++ b/apps/www/_customers/epsilon3.mdx@@ -6,8 +6,9 @@ author_title: Supabaseauthor_url: https://github.com/kiwicoppleauthor_image_url: https://avatars2.githubusercontent.com/u/10214025?s=400&u=c6775be2ae667e2acae3ccd347fed62bb3f5b3e7&v=4authorURL: https://github.com/kiwicopple-logo: /images/case-studies/logos/epsilon3.png-logo_inverse: /images/case-studies/logos/light/epsilon3.png+logo: /images/customers/logos/epsilon3.png+logo_inverse: /images/customers/logos/light/epsilon3.png+og_image: /images/customers/og/epsilon3.jpgtags:- supabasedate: '2023-02-14'diff --git a/apps/www/_customers/happyteams.mdx b/apps/www/_customers/happyteams.mdxindex a9d0b6987ab..9a36c5ba610 100644--- a/apps/www/_customers/happyteams.mdx+++ b/apps/www/_customers/happyteams.mdx@@ -7,8 +7,9 @@ author_title: Supabaseauthor_url: https://github.com/kiwicoppleauthor_image_url: https://avatars2.githubusercontent.com/u/10214025?s=400&u=c6775be2ae667e2acae3ccd347fed62bb3f5b3e7&v=4authorURL: https://github.com/kiwicopple-logo: /images/case-studies/logos/happyteams.png-logo_inverse: /images/case-studies/logos/light/happyteams.png+logo: /images/customers/logos/happyteams.png+logo_inverse: /images/customers/logos/light/happyteams.png+og_image: /images/customers/og/happyteams.jpgtags:- supabasedate: '2023-02-16'diff --git a/apps/www/_customers/mobbin.mdx b/apps/www/_customers/mobbin.mdxindex d16eb00688a..06774869a3e 100644--- a/apps/www/_customers/mobbin.mdx+++ b/apps/www/_customers/mobbin.mdx@@ -7,8 +7,9 @@ author_title: Supabaseauthor_url: https://github.com/kiwicoppleauthor_image_url: https://avatars2.githubusercontent.com/u/10214025?s=400&u=c6775be2ae667e2acae3ccd347fed62bb3f5b3e7&v=4authorURL: https://github.com/kiwicopple-logo: /images/case-studies/logos/mobbin.png-logo_inverse: /images/case-studies/logos/light/mobbin.png+logo: /images/customers/logos/mobbin.png+logo_inverse: /images/customers/logos/light/mobbin.png+og_image: /images/customers/og/mobbin.jpgtags:- supabasedate: '2023-02-14'diff --git a/apps/www/_customers/replenysh.mdx b/apps/www/_customers/replenysh.mdxindex c11bc3229de..5c0467dd032 100644--- a/apps/www/_customers/replenysh.mdx+++ b/apps/www/_customers/replenysh.mdx@@ -6,8 +6,9 @@ author_title: Supabaseauthor_url: https://github.com/kiwicoppleauthor_image_url: https://avatars2.githubusercontent.com/u/10214025?s=400&u=c6775be2ae667e2acae3ccd347fed62bb3f5b3e7&v=4authorURL: https://github.com/kiwicopple-logo: /images/case-studies/logos/replenysh.png-logo_inverse: /images/case-studies/logos/light/replenysh.png+logo: /images/customers/logos/replenysh.png+logo_inverse: /images/customers/logos/light/replenysh.png+og_image: /images/customers/og/replenysh.jpgtags:- supabasedate: '2023-02-14'diff --git a/apps/www/_customers/xendit.mdx b/apps/www/_customers/xendit.mdxindex 50926f75c14..39af92410bb 100644--- a/apps/www/_customers/xendit.mdx+++ b/apps/www/_customers/xendit.mdx@@ -6,8 +6,9 @@ author_title: Supabaseauthor_url: https://github.com/kiwicoppleauthor_image_url: https://avatars2.githubusercontent.com/u/10214025?s=400&u=c6775be2ae667e2acae3ccd347fed62bb3f5b3e7&v=4authorURL: https://github.com/kiwicopple-logo: /images/case-studies/logos/xendit.png-logo_inverse: /images/case-studies/logos/light/xendit.png+logo: /images/customers/logos/xendit.png+logo_inverse: /images/customers/logos/light/xendit.png+og_image: /images/customers/og/xendit.jpgcompany_url: https://xendit.cotags:- supabasediff --git a/apps/www/components/Nav/Developers.tsx b/apps/www/components/Nav/Developers.tsxindex 94edb6956dc..fe7e30ebb31 100644--- a/apps/www/components/Nav/Developers.tsx+++ b/apps/www/components/Nav/Developers.tsx@@ -62,23 +62,23 @@ const Developers = () => {<div className="m-3 mx-6"><p className="p">Latest announcements</p><ul className="mt-6 space-y-3 pb-6">- {AnnouncementsData.map((caseStudy: any, idx: number) => (+ {AnnouncementsData.map((announcement: any, idx: number) => (<li className="flow-root" key={`flyout_case_${idx}`}>- <Link href={caseStudy.url}>+ <Link href={announcement.url}><a className="dark:hover:bg-dark-700 flex items-center rounded-lg border p-3 transition duration-150 ease-in-out hover:bg-gray-100"><div className="relative hidden h-20 w-32 flex-shrink-0 overflow-auto rounded-md sm:block"><Image- src={`${basePath}${caseStudy.imgUrl}`}- alt="caseStudyThumb"+ src={`${basePath}${announcement.imgUrl}`}+ alt={announcement.title}layout="fill"objectFit="cover"/></div><div className="min-w-0 flex-1 sm:ml-4"><h4 className="text-scale-1200 text-normal mb-0 text-base">- {caseStudy.title}+ {announcement.title}</h4>- <p className="p text-sm">{caseStudy.description}</p>+ <p className="p text-sm">{announcement.description}</p></div></a></Link>diff --git a/apps/www/components/Nav/Product.tsx b/apps/www/components/Nav/Product.tsxindex 236b75f7768..d2085722e6e 100644--- a/apps/www/components/Nav/Product.tsx+++ b/apps/www/components/Nav/Product.tsx@@ -50,18 +50,18 @@ const Product = () => {<div className="m-3 mx-6 flex flex-col items-start"><p className="p">Latest customer stories</p><ul className="mt-6 space-y-3">- {CustomerStoriesData.map((caseStudy: any, idx: number) => {+ {CustomerStoriesData.map((customer: any, idx: number) => {if (idx > 1) {return null}return (<li className="flow-root" key={`flyout_case_${idx}`}>- <Link href={caseStudy.url}>+ <Link href={customer.url}><a className="dark:hover:bg-dark-700 flex items-center rounded-lg border p-3 transition duration-150 ease-in-out hover:bg-gray-100"><div className="relative hidden mx-2 h-12 w-32 flex-shrink-0 overflow-auto rounded-md sm:block"><Image- src={`${basePath}/${caseStudy.imgUrl}`}- alt="caseStudyThumb"+ src={`${basePath}/${customer.imgUrl}`}+ alt={customer.title}layout="fill"objectFit="contain"className="dark:brightness-200 dark:contrast-0 dark:filter"@@ -69,9 +69,9 @@ const Product = () => {</div><div className="min-w-0 flex-1 sm:ml-4"><h4 className="text-scale-1200 text-normal mb-0 text-base">- {caseStudy.title}+ {customer.title}</h4>- <p className="p text-sm !mb-0">{caseStudy.description}</p>+ <p className="p text-sm !mb-0">{customer.description}</p></div></a></Link>diff --git a/apps/www/data/CustomerStories.json b/apps/www/data/CustomerStories.jsonindex c94eb20b47c..d97f6e79991 100644--- a/apps/www/data/CustomerStories.json+++ b/apps/www/data/CustomerStories.json@@ -3,8 +3,8 @@"type": "Customer Story","title": "HappyTeams unlocks better performance and reduces cost with Supabase.","description": "How a bootstrapped startup migrated from Heroku to Supabase in 30 minutes and never looked back.",- "imgUrl": "images/case-studies/logos/happyteams.png",- "logoUrl": "images/case-studies/logos/happyteams.png",+ "imgUrl": "images/customers/logos/happyteams.png",+ "logoUrl": "images/customers/logos/happyteams.png","organization": "HappyTeams","url": "/customers/happyteams","path": "/customers/happyteams",@@ -20,8 +20,8 @@"type": "Customer Story","title": "Xendit use Supabase and create a full solution shipped to production in less than one week.","description": "As a payment processor, Xendit are responsible for verifying that all transactions are legal.",- "imgUrl": "images/case-studies/logos/xendit.png",- "logoUrl": "images/case-studies/logos/xendit.png",+ "imgUrl": "images/customers/logos/xendit.png",+ "logoUrl": "images/customers/logos/xendit.png","organization": "Xendit","url": "/customers/xendit","path": "/customers/xendit",@@ -37,8 +37,8 @@"type": "Customer Story","title": "Replenysh uses Supabase to implement OTP in less than 24 hours.","description": "With Supabase, Replenysh gets a slick auth experience, reduces DevOps overhead, and continues to scale with Postgres.",- "imgUrl": "images/case-studies/logos/replenysh.png",- "logoUrl": "images/case-studies/logos/replenysh.png",+ "imgUrl": "images/customers/logos/replenysh.png",+ "logoUrl": "images/customers/logos/replenysh.png","organization": "Replenysh","url": "/customers/replenysh","path": "/customers/replenysh",diff --git a/apps/www/pages/customers/[slug].tsx b/apps/www/pages/customers/[slug].tsxindex d1b151a5397..05f4ea25d11 100644--- a/apps/www/pages/customers/[slug].tsx+++ b/apps/www/pages/customers/[slug].tsx@@ -68,7 +68,7 @@ function CaseStudyPage(props: any) {openGraph={{title: props.blog.title,description: props.blog.description,- url: `https://supabase.io/blog/${props.blog.slug}`,+ url: `https://supabase.io/customers/${props.blog.slug}`,type: 'article',article: {//@@ -78,9 +78,7 @@ function CaseStudyPage(props: any) {},images: [{- url: `https://supabase.io${basePath}/images/blog/${- props.blog.image ? props.blog.image : props.blog.thumb- }`,+ url: props.blog.og_image ?? `${basePath}/images/customers/og/customer-stories.jpg`,},],}}diff --git a/apps/www/pages/customers/index.tsx b/apps/www/pages/customers/index.tsxindex 4fbf7f6ee33..d494154ea59 100644--- a/apps/www/pages/customers/index.tsx+++ b/apps/www/pages/customers/index.tsx@@ -37,6 +37,13 @@ function CustomerStoriesPage(props: any) {const [blogs, setBlogs] = useState(props.blogs)const { basePath } = useRouter()+ const META = {+ TITLE: 'Customer Stories | Supabase',+ IMAGE: `${basePath}/images/customers/og/customer-stories.jpg`,+ DESCRIPTION:+ 'See how Supabase empowers companies of all sizes to accelerate their growth and streamline their work.',+ }+useEffect(() => {// Update the document title using the browser APIsetBlogs(@@ -61,6 +68,10 @@ function CustomerStoriesPage(props: any) {return (<><Head>+ <title>{META['TITLE']}</title>+ <meta name="description" content={META['DESCRIPTION']} />+ <meta property="og:image" content={META['IMAGE']} />+ <meta name="twitter:image" content={META['IMAGE']} /><linkrel="alternate"type="application/rss+xml"@@ -69,8 +80,18 @@ function CustomerStoriesPage(props: any) {/></Head><NextSeo- title="Customer stories"- description="See how Supabase empowers companies of all sizes to accelerate their growth and streamline their work."+ title={META['TITLE']}+ description={META['DESCRIPTION']}+ openGraph={{+ title: META['TITLE'],+ description: META['DESCRIPTION'],+ url: `${basePath}/customers`,+ images: [+ {+ url: META['IMAGE'],+ },+ ],+ }}/><DefaultLayout><div className="relative z-0 dark:bg-scale-200 bg-scale-200 overflow-hidden">diff --git a/apps/www/public/images/case-studies/logos/epsilon3.png b/apps/www/public/images/customers/logos/epsilon3.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/epsilon3.pngrename to apps/www/public/images/customers/logos/epsilon3.pngdiff --git a/apps/www/public/images/case-studies/logos/happyteams.png b/apps/www/public/images/customers/logos/happyteams.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/happyteams.pngrename to apps/www/public/images/customers/logos/happyteams.pngdiff --git a/apps/www/public/images/case-studies/logos/light/epsilon3.png b/apps/www/public/images/customers/logos/light/epsilon3.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/epsilon3.pngrename to apps/www/public/images/customers/logos/light/epsilon3.pngdiff --git a/apps/www/public/images/case-studies/logos/light/happyteams.png b/apps/www/public/images/customers/logos/light/happyteams.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/happyteams.pngrename to apps/www/public/images/customers/logos/light/happyteams.pngdiff --git a/apps/www/public/images/case-studies/logos/light/mobbin.png b/apps/www/public/images/customers/logos/light/mobbin.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/mobbin.pngrename to apps/www/public/images/customers/logos/light/mobbin.pngdiff --git a/apps/www/public/images/case-studies/logos/light/netlify.png b/apps/www/public/images/customers/logos/light/netlify.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/netlify.pngrename to apps/www/public/images/customers/logos/light/netlify.pngdiff --git a/apps/www/public/images/case-studies/logos/light/replenysh.png b/apps/www/public/images/customers/logos/light/replenysh.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/replenysh.pngrename to apps/www/public/images/customers/logos/light/replenysh.pngdiff --git a/apps/www/public/images/case-studies/logos/light/vercel.png b/apps/www/public/images/customers/logos/light/vercel.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/vercel.pngrename to apps/www/public/images/customers/logos/light/vercel.pngdiff --git a/apps/www/public/images/case-studies/logos/light/xendit.png b/apps/www/public/images/customers/logos/light/xendit.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/light/xendit.pngrename to apps/www/public/images/customers/logos/light/xendit.pngdiff --git a/apps/www/public/images/case-studies/logos/mobbin.png b/apps/www/public/images/customers/logos/mobbin.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/mobbin.pngrename to apps/www/public/images/customers/logos/mobbin.pngdiff --git a/apps/www/public/images/case-studies/logos/netlify.png b/apps/www/public/images/customers/logos/netlify.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/netlify.pngrename to apps/www/public/images/customers/logos/netlify.pngdiff --git a/apps/www/public/images/case-studies/logos/replenysh.png b/apps/www/public/images/customers/logos/replenysh.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/replenysh.pngrename to apps/www/public/images/customers/logos/replenysh.pngdiff --git a/apps/www/public/images/case-studies/logos/vercel.png b/apps/www/public/images/customers/logos/vercel.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/vercel.pngrename to apps/www/public/images/customers/logos/vercel.pngdiff --git a/apps/www/public/images/case-studies/logos/xendit.png b/apps/www/public/images/customers/logos/xendit.pngsimilarity index 100%rename from apps/www/public/images/case-studies/logos/xendit.pngrename to apps/www/public/images/customers/logos/xendit.pngdiff --git a/apps/www/public/images/customers/og/customer-stories.jpg b/apps/www/public/images/customers/og/customer-stories.jpgnew file mode 100644index 00000000000..1423ae3fb8fBinary files /dev/null and b/apps/www/public/images/customers/og/customer-stories.jpg differdiff --git a/apps/www/public/images/customers/og/epsilon3.jpg b/apps/www/public/images/customers/og/epsilon3.jpgnew file mode 100644index 00000000000..fe933e7eca0Binary files /dev/null and b/apps/www/public/images/customers/og/epsilon3.jpg differdiff --git a/apps/www/public/images/customers/og/happyteams.jpg b/apps/www/public/images/customers/og/happyteams.jpgnew file mode 100644index 00000000000..2aac7752540Binary files /dev/null and b/apps/www/public/images/customers/og/happyteams.jpg differdiff --git a/apps/www/public/images/customers/og/mobbin.jpg b/apps/www/public/images/customers/og/mobbin.jpgnew file mode 100644index 00000000000..941a97f35a1Binary files /dev/null and b/apps/www/public/images/customers/og/mobbin.jpg differdiff --git a/apps/www/public/images/customers/og/replenysh.jpg b/apps/www/public/images/customers/og/replenysh.jpgnew file mode 100644index 00000000000..2cf759a1f95Binary files /dev/null and b/apps/www/public/images/customers/og/replenysh.jpg differdiff --git a/apps/www/public/images/customers/og/xendit.jpg b/apps/www/public/images/customers/og/xendit.jpgnew file mode 100644index 00000000000..5c021b7eab2Binary files /dev/null and b/apps/www/public/images/customers/og/xendit.jpg differ