The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
udpate layout a bit
Jonathan Summers-Muir51688d947f81
diff --git a/apps/www/_case-studies/epsilon3.mdx b/apps/www/_case-studies/epsilon3.mdxindex 803c15c61e8..e9d90f20900 100644--- a/apps/www/_case-studies/epsilon3.mdx+++ b/apps/www/_case-studies/epsilon3.mdx@@ -9,7 +9,7 @@ authorURL: https://github.com/kiwicopplelogo: /images/case-studies/logos/epsilon3.pngtags:- supabase-date: '28-10-2020'+date: '2023-02-14'company_url: 'https://epsilon3.io'stats:[diff --git a/apps/www/_case-studies/mobbin.mdx b/apps/www/_case-studies/mobbin.mdxindex 9a1b5701e12..0d425585f51 100644--- a/apps/www/_case-studies/mobbin.mdx+++ b/apps/www/_case-studies/mobbin.mdx@@ -10,7 +10,7 @@ authorURL: https://github.com/kiwicopplelogo: /images/case-studies/logos/mobbin.pngtags:- supabase-date: '28-10-2020'+date: '2023-02-14'company_url: 'https://mobbin.design'stats:[@@ -20,8 +20,6 @@ stats:]misc: [{ label: 'Founded', text: Singapore }]about: Mobbin is a comprehensive, expert-curated library of interfaces from the best-in-class digital products that helps product designers find relevant design inspiration and references with significantly less time and effort.-----Mobbin helps over 200,000 creators globally search and view the latest design patterns from well-known apps.diff --git a/apps/www/_case-studies/replenysh.mdx b/apps/www/_case-studies/replenysh.mdxindex 9285440ac90..42e9c21f6eb 100644--- a/apps/www/_case-studies/replenysh.mdx+++ b/apps/www/_case-studies/replenysh.mdx@@ -9,7 +9,7 @@ authorURL: https://github.com/kiwicopplelogo: /images/case-studies/logos/replenysh.pngtags:- supabase-date: '28-10-2020'+date: '2023-02-14'company_url: https://replenysh.com/stats:[diff --git a/apps/www/_case-studies/xendit.mdx b/apps/www/_case-studies/xendit.mdxindex a4cfd1062cb..45279d9eb00 100644--- a/apps/www/_case-studies/xendit.mdx+++ b/apps/www/_case-studies/xendit.mdx@@ -10,7 +10,7 @@ logo: /images/case-studies/logos/xendit.pngcompany_url: https://xendit.cotags:- supabase-date: '28-10-2020'+date: '2023-02-14'stats:[{ stat: '120', label: Staff count },diff --git a/apps/www/lib/posts.tsx b/apps/www/lib/posts.tsxindex 7b33f339012..810f3ae2dec 100644--- a/apps/www/lib/posts.tsx+++ b/apps/www/lib/posts.tsx@@ -111,6 +111,8 @@ export const getAllPostSlugs = (directory: Directories) => {}})+ console.log('files', files)+return files}diff --git a/apps/www/pages/case-studies/[slug].tsx b/apps/www/pages/case-studies/[slug].tsxindex eee1374ad0e..3faaf3e2080 100644--- a/apps/www/pages/case-studies/[slug].tsx+++ b/apps/www/pages/case-studies/[slug].tsx@@ -1,11 +1,12 @@import { Button, IconChevronRight, IconExternalLink } from '@supabase/ui'import matter from 'gray-matter'-import authors from 'lib/authors.json'+import { MDXRemote } from 'next-mdx-remote'import { NextSeo } from 'next-seo'import Image from 'next/image'import Link from 'next/link'import { useRouter } from 'next/router'+import { IconChevronLeft, IconChevronsLeft } from '~/../../packages/ui'import CTABanner from '~/components/CTABanner'import DefaultLayout from '~/components/Layouts/Default'import mdxComponents from '~/lib/mdx/mdxComponents'@@ -27,22 +28,18 @@ export async function getStaticProps({ params }: any) {const filePath = `${params.slug}`const postContent = await getPostdata(filePath, '_case-studies')const { data, content } = matter(postContent)-const mdxSource: any = await mdxSerialize(content)const relatedPosts = getSortedPosts('_case-studies', 5, mdxSource.scope.tags)const allPosts = getSortedPosts('_case-studies')-const currentIndex = allPosts.map(function (e) {return e.slug}).indexOf(filePath)-const nextPost = allPosts[currentIndex + 1]const prevPost = allPosts[currentIndex - 1]-const payload = {props: {prevPost: currentIndex === 0 ? null : prevPost ? prevPost : null,@@ -57,13 +54,10 @@ export async function getStaticProps({ params }: any) {},},}-return payload}-function BlogPostPage(props: any) {- // @ts-ignore- // const author = props.blog.author ? authors[props.blog.author] : authors['supabase']+function CaseStudyPage(props: any) {const content = props.blog.contentconst { basePath } = useRouter()@@ -122,70 +116,90 @@ function BlogPostPage(props: any) {<DefaultLayout><divclassName="- dark:bg-scale-200 bg-scale-200container mx-auto px-8 py-16 sm:px-16xl:px-20">- <div className="grid grid-cols-12 gap-8 xl:gap-16">- <article className="col-span-12 max-w-6xl mx-auto flex flex-col gap-8">- <div className="col-span-12 flex flex-col gap-8 lg:col-span-10 xl:col-span-8 md:max-w-2xl xl:max-w-4xl">- <p className="text-brand-900 mb-2 mt-0">- Case Studies / <a>{props.blog.name}</a>- </p>- <h1 className="text-scale-1200 text-4xl font-semibold xl:text-5xl">- {props.blog.title}- </h1>- <h2 className="text-scale-1200 text-xl xl:text-2xl">{props.blog.description}</h2>- </div>+ <div className="grid grid-cols-12 gap-4">+ <div className="col-span-12 mb-2 lg:col-span-2">+ {/* Back button */}+ <p>+ <a+ href={'/case-studies'}+ className="text-scale-900 hover:text-scale-1200 flex cursor-pointer items-center text-sm transition"+ >+ <IconChevronLeft style={{ padding: 0 }} />+ Back+ </a>+ </p>+ </div>++ <div+ className="col-span-12 lg:col-span-8++ "+ >+ <div className="">+ <article className="flex flex-col gap-8">+ <div className="flex flex-col gap-8 max-w-xxl">+ <Link passHref href="/case-studies">+ <a className="text-brand-900 hover:text-brand-1000 mb-2 mt-0">Case Studies</a>+ </Link>+ <h1 className="text-scale-1200 text-4xl font-semibold xl:text-5xl">+ {props.blog.title}+ </h1>+ <h2 className="text-scale-1200 text-xl xl:text-2xl">+ {props.blog.description}+ </h2>+ </div>- <div className="grid grid-cols-12 prose max-w-none gap-8 lg:gap-20">- <div className="col-span-12 lg:col-span-4 lg:block xl:col-span-4">- <div className="space-y-8 lg:sticky lg:top-24 lg:mb-24">- {/* Logo */}- <div className={`relative h-16 w-32`}>- <p className="flex flex-row ">- <Image- layout="fill"- src={`${props.blog.logo}`}- alt={`${props.blog.title} logo`}- objectFit="scale-down"- objectPosition="left"- className="+ <div className="grid grid-cols-12 prose max-w-none gap-8 lg:gap-20">+ <div className="col-span-12 lg:col-span-4 lg:block xl:col-span-4">+ <div className="space-y-8 lg:sticky lg:top-24 lg:mb-24">+ {/* Logo */}+ <div className={`relative h-16 w-32`}>+ <p className="flex flex-row ">+ <Image+ layout="fill"+ src={`${props.blog.logo}`}+ alt={`${props.blog.title} logo`}+ objectFit="scale-down"+ objectPosition="left"+ className="bg-no-repeatdark:brightness-200dark:contrast-0dark:filter"- />- </p>- </div>-- <div className="flex flex-col space-y-2">- <span className="text-scale-900">About</span>- <p>{props.blog.about}</p>- <span className="not-prose ">- <a- href={props.blog.company_url}- className=" flex cursor-pointer items-center space-x-1 opacity-50 transition-opacity hover:opacity-100"- >- <span>{props.blog.company_url}</span>- <IconExternalLink size={14} />- </a>- </span>- </div>+ />+ </p>+ </div>- {props.blog.misc.map((x: any) => {- return (- <div className="flex flex-col gap-0">- <span className="text-scale-900">{x.label}</span>- <span className="text-scale-1100">{x.text}</span>+ <div className="flex flex-col space-y-2">+ <span className="text-scale-900">About</span>+ <p>{props.blog.about}</p>+ <span className="not-prose ">+ <a+ href={props.blog.company_url}+ className=" flex cursor-pointer items-center space-x-1 opacity-50 transition-opacity hover:opacity-100"+ >+ <span>{props.blog.company_url}</span>+ <IconExternalLink size={14} />+ </a>+ </span></div>- )- })}- <div className="flex flex-col md:flex-row lg:flex-col gap-8 justify-between">- {props.blog.stats.map((x: any) => {++ {props.blog.misc.map((x: any) => {+ return (+ <div className="flex flex-col gap-0">+ <span className="text-scale-900">{x.label}</span>+ <span className="text-scale-1100">{x.text}</span>+ </div>+ )+ })}+ <div className="flex flex-col md:flex-row lg:flex-col gap-8 justify-between">+ {/* {props.blog.stats.map((x: any) => {return (<div className="flex space-x-3"><div className="bg-brand-900 mt-0.5 h-8 w-0.5"></div>@@ -197,36 +211,38 @@ function BlogPostPage(props: any) {</div></div>)- })}- </div>+ })} */}+ </div>- <div className="">- <p>Ready to get started?</p>- <div>- <Button type="default" iconRight={<IconChevronRight />}>- Contact sales- </Button>+ <div className="">+ <p>Ready to get started?</p>+ <div>+ <Button type="default" iconRight={<IconChevronRight />}>+ Contact sales+ </Button>+ </div>+ </div></div></div>+ <div className="xm:col-span-7 col-span-12 lg:col-span-8 xl:col-span-8 ">+ <MDXRemote {...content} components={mdxComponents()} />+ </div>+ {/* Sidebar */}</div>- </div>- <div className="xm:col-span-7 col-span-12 lg:col-span-8 xl:col-span-8 ">- <MDXRemote {...content} components={mdxComponents()} />- </div>- {/* Sidebar */}+ </article></div>- </article>+ </div></div></div>- <div className="mt-32">+ {/* <div className="mt-32"><h3 className="text-2xl">Read more case studies</h3><div className="grid grid-cols-3 gap-8">- {/* {props.relatedPosts.map((post) => {+ {props.relatedPosts.map((post) => {return <NextCard post={post} />- })} */}+ })}</div>- </div>+ </div> */}<CTABanner /></DefaultLayout>@@ -234,8 +250,4 @@ function BlogPostPage(props: any) {)}-// function BlogPostPage() {-// return <h1>blog post</h1>-// }--export default BlogPostPage+export default CaseStudyPagediff --git a/apps/www/public/case-studies-rss.xml b/apps/www/public/case-studies-rss.xmlindex 35330604cb2..c7dd32949be 100644--- a/apps/www/public/case-studies-rss.xml+++ b/apps/www/public/case-studies-rss.xml@@ -5,35 +5,35 @@<link>https://supabase.com</link><description>Latest news from Supabase</description><language>en</language>- <lastBuildDate>Invalid Date</lastBuildDate>+ <lastBuildDate>Mon, 13 Feb 2023 16:04:00 +0000</lastBuildDate><atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/case-studies/xendit</guid><title>Xendit use Supabase and create a full solution shipped to production in less than one week.</title><link>https://supabase.com/case-studies/xendit</link><description>As a payment processor, Xendit are responsible for verifying that all transactions are legal.</description>- <pubDate>Invalid Date</pubDate>+ <pubDate>Mon, 13 Feb 2023 16:04:00 +0000</pubDate></item><item><guid>https://supabase.com/case-studies/replenysh</guid>- <title>Replenysh</title>+ <title>Replenysh uses Supabase to implement OTP in less than 24 hours</title><link>https://supabase.com/case-studies/replenysh</link>- <description>Two months of building</description>- <pubDate>Invalid Date</pubDate>+ <description>With Supabase, Replenysh gets a slick auth experience, reduces DevOps overhead, and continues to scale with Postgres.</description>+ <pubDate>Mon, 13 Feb 2023 16:04:00 +0000</pubDate></item><item><guid>https://supabase.com/case-studies/mobbin</guid><title>How Mobbin migrated 200,000 users from Firebase for a better authentication experience.</title><link>https://supabase.com/case-studies/mobbin</link><description>Mobbin helps over 200,000 creators globally search and view the latest design patterns from well-known apps.</description>- <pubDate>Invalid Date</pubDate>+ <pubDate>Mon, 13 Feb 2023 16:04:00 +0000</pubDate></item><item><guid>https://supabase.com/case-studies/epsilon3</guid><title>Epsilon3 digitize paper-based procedures in the space industry using telemetry data, simplifying testing and operations.</title><link>https://supabase.com/case-studies/epsilon3</link><description>Epsilon3 uses Supabase to help teams execute secure and reliable operations in an industry where project spend runs into the billions.</description>- <pubDate>Invalid Date</pubDate>+ <pubDate>Mon, 13 Feb 2023 16:04:00 +0000</pubDate></item></channel>diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xmlindex aa2c31ffe6a..253eb5834a3 100644--- a/apps/www/public/sitemap_www.xml+++ b/apps/www/public/sitemap_www.xml@@ -30,6 +30,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/case-studies</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/changelog</loc><changefreq>weekly</changefreq>diff --git a/package-lock.json b/package-lock.jsonindex 7e9ded4503d..e635e795ed8 100644--- a/package-lock.json+++ b/package-lock.json@@ -39365,6 +39365,186 @@"funding": {"url": "https://github.com/sponsors/sindresorhus"}+ },+ "node_modules/@next/swc-android-arm-eabi": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.3.2.tgz",+ "integrity": "sha512-r2rrz+DZ8YYGqzVrbRrpP6GKzwozpOrnFbErc4k36vUTSFMag9yQahZfaBe06JYdqu/e5yhm/saIDEaSVPRP4g==",+ "cpu": [+ "arm"+ ],+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-android-arm64": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.3.2.tgz",+ "integrity": "sha512-B+TINJhCf+CrY1+b3/JWQlkecv53rAGa/gA7gi5B1cnBa/2Uvoe+Ue0JeCefTjfiyl1ScsyNx+NcESY8Ye2Ngg==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-darwin-x64": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.3.2.tgz",+ "integrity": "sha512-1HkjmS9awwlaeEY8Y01nRSNkSv3y+qnC/mjMPe/W66hEh3QKa/LQHqHeS7NOdEs19B2mhZ7w+EgMRXdLQ0Su8w==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-freebsd-x64": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.3.2.tgz",+ "integrity": "sha512-h5Mx0BKDCJ5Vu/U8e07esF6PjPv1EJgmRbYWTUZMAflu13MQpCJkKEJir7+BeRfTXRfgFf+llc7uocrpd7mcrg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm-gnueabihf": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.3.2.tgz",+ "integrity": "sha512-EuRZAamoxfe/WoWRaC0zsCAoE4gs/mEhilcloNM4J5Mnb3PLY8PZV394W7t5tjBjItMCF7l2Ebwjwtm46tq2RA==",+ "cpu": [+ "arm"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-gnu": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.3.2.tgz",+ "integrity": "sha512-T9GCFyOIb4S3acA9LqflUYD+QZ94iZketHCqKdoO0Nx0OCHIgGJV5rotDe8TDXwh/goYpIfyHU4j1qqw4w4VnA==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-musl": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.3.2.tgz",+ "integrity": "sha512-hxNVZS6L3c2z3l9EH2GP0MGQ9exu6O8cohYNZyqC9WUl6C03sEn8xzDH1y+NgD3fVurvYkGU5F0PDddJJLfDIw==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-gnu": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.3.2.tgz",+ "integrity": "sha512-fCPkLuwDwY8/QeXxciJJjDHG09liZym/Bhb4A+RLFQ877wUkwFsNWDUTSdUx0YXlYK/1gf67BKauqKkOKp6CYw==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-musl": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.3.2.tgz",+ "integrity": "sha512-o+GifBIQ2K+/MEFxHsxUZoU3bsuVFLXZYWd3idimFHiVdDCVYiKsY6mYMmKDlucX+9xRyOCkKL9Tjf+3tuXJpw==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-arm64-msvc": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.3.2.tgz",+ "integrity": "sha512-crii66irzGGMSUR0L8r9+A06eTv7FTXqw4rgzJ33M79EwQJOdpY7RVKXLQMurUhniEeQEEOfamiEdPIi/qxisw==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-ia32-msvc": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.3.2.tgz",+ "integrity": "sha512-5hRUSvn3MdQ4nVRu1rmKxq5YJzpTtZfaC/NyGw6wa4NSF1noUn/pdQGUr+I5Qz3CZkd1gZzzC0eaXQHlrk0E2g==",+ "cpu": [+ "ia32"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-x64-msvc": {+ "version": "12.3.2",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.3.2.tgz",+ "integrity": "sha512-tpQJYUH+TzPMIsdVl9fH8uDg47iwiNjKY+8e9da3dXqlkztKzjSw0OwSADoqh3KrifplXeKSta+BBGLdBqg3sg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }}},"dependencies": {