Skip to content

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

chore: update supabase ui. fix type errors

Jonathan Summers-Muirf2454b6e3d35
diff --git a/www/lib/posts.tsx b/www/lib/posts.tsx
index f00ac649f7c..f977b7fc7ea 100644
--- a/www/lib/posts.tsx
+++ b/www/lib/posts.tsx
@@ -119,7 +119,7 @@ export const getPostdata = async (slug: string, directory: string) => {
return postContent
}
-export const getAllCategories = (directory: string) => {
+export const getAllCategories = (directory: Directories) => {
const posts = getSortedPosts(directory)
let categories: any = []
diff --git a/www/package-lock.json b/www/package-lock.json
index 23c848fdd4f..fddb3585b5d 100644
--- a/www/package-lock.json
+++ b/www/package-lock.json
@@ -13,7 +13,7 @@
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^10.0.7",
"@supabase/supabase-js": "^1.6.0",
- "@supabase/ui": "^0.36.0",
+ "@supabase/ui": "^0.36.1",
"classnames": "2.2.6",
"date-fns": "2.10.0",
"globby": "^12.0.2",
@@ -2253,9 +2253,9 @@
}
},
"node_modules/@supabase/ui": {
- "version": "0.36.0",
- "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.36.0.tgz",
- "integrity": "sha512-LAaqfVvCjy1yJeo/wDxNDHepef0zlxHgM2kWAOSu8HUiYr3aLFk+hmrwx166b18Ji9Fmqqy6CdeY0hfsrkwEYA==",
+ "version": "0.36.1",
+ "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.36.1.tgz",
+ "integrity": "sha512-MlzXnPO/QQL/VOchtaIOEQTakHtdrEjihJgigww3bDb+Q/e85QCeW2Mluk3qm+KbRC/WS2/EAveGuhP/bYPzqA==",
"dependencies": {
"lodash": "^4.17.20",
"prop-types": "^15.7.2"
@@ -12722,9 +12722,9 @@
}
},
"@supabase/ui": {
- "version": "0.36.0",
- "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.36.0.tgz",
- "integrity": "sha512-LAaqfVvCjy1yJeo/wDxNDHepef0zlxHgM2kWAOSu8HUiYr3aLFk+hmrwx166b18Ji9Fmqqy6CdeY0hfsrkwEYA==",
+ "version": "0.36.1",
+ "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.36.1.tgz",
+ "integrity": "sha512-MlzXnPO/QQL/VOchtaIOEQTakHtdrEjihJgigww3bDb+Q/e85QCeW2Mluk3qm+KbRC/WS2/EAveGuhP/bYPzqA==",
"requires": {
"fsevents": "^2.3.2",
"lodash": "^4.17.20",
diff --git a/www/package.json b/www/package.json
index 70f6516b0fe..75310deba51 100644
--- a/www/package.json
+++ b/www/package.json
@@ -17,7 +17,7 @@
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^10.0.7",
"@supabase/supabase-js": "^1.6.0",
- "@supabase/ui": "^0.36.0",
+ "@supabase/ui": "^0.36.1",
"classnames": "2.2.6",
"date-fns": "2.10.0",
"globby": "^12.0.2",
diff --git a/www/pages/blog/tags/[tag].tsx b/www/pages/blog/tags/[tag].tsx
index a059ee4d4b8..dc204d18791 100644
--- a/www/pages/blog/tags/[tag].tsx
+++ b/www/pages/blog/tags/[tag].tsx
@@ -7,7 +7,7 @@ import PostTypes from '~/types/post'
import BlogHeader from '~/components/Blog/BlogHeader'
export async function getStaticProps({ params }: any) {
- const posts = getSortedPosts(0, [params.tag])
+ const posts = getSortedPosts('_blog', 0, [params.tag])
return {
props: {
tag: params.tag,
@@ -17,7 +17,7 @@ export async function getStaticProps({ params }: any) {
}
export async function getStaticPaths() {
- const categories = getAllCategories()
+ const categories = getAllCategories('_blog')
return {
paths: categories.map((category: any) => ({ params: { tag: category } })),
fallback: false,
diff --git a/www/public/case-studies-rss.xml b/www/public/case-studies-rss.xml
index 928acd75147..ad3ecb66444 100644
--- a/www/public/case-studies-rss.xml
+++ b/www/public/case-studies-rss.xml
@@ -2,40 +2,40 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Blog - Supabase</title>
- <link>https://supabase.io</link>
+ <link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
<lastBuildDate>Invalid Date</lastBuildDate>
- <atom:link href="https://supabase.io/blog/rss.xml" rel="self" type="application/rss+xml"/>
+ <atom:link href="https://supabase.com/blog/rss.xml" rel="self" type="application/rss+xml"/>
<item>
- <guid>https://supabase.io/blog//case-studies/xendit</guid>
+ <guid>https://supabase.com/blog//case-studies/xendit</guid>
<title>Xendit</title>
- <link>https://supabase.io/blog//case-studies/xendit</link>
+ <link>https://supabase.com/blog//case-studies/xendit</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
<item>
- <guid>https://supabase.io/blog//case-studies/replenysh</guid>
+ <guid>https://supabase.com/blog//case-studies/replenysh</guid>
<title>Replenysh</title>
- <link>https://supabase.io/blog//case-studies/replenysh</link>
+ <link>https://supabase.com/blog//case-studies/replenysh</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
<item>
- <guid>https://supabase.io/blog//case-studies/mobbin</guid>
+ <guid>https://supabase.com/blog//case-studies/mobbin</guid>
<title>Mobbin</title>
- <link>https://supabase.io/blog//case-studies/mobbin</link>
+ <link>https://supabase.com/blog//case-studies/mobbin</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
<item>
- <guid>https://supabase.io/blog//case-studies/epsilon3</guid>
+ <guid>https://supabase.com/blog//case-studies/epsilon3</guid>
<title>Epsilon3</title>
- <link>https://supabase.io/blog//case-studies/epsilon3</link>
+ <link>https://supabase.com/blog//case-studies/epsilon3</link>
<description>Two months of building</description>
<pubDate>Invalid Date</pubDate>
</item>
diff --git a/www/public/sitemap_www.xml b/www/public/sitemap_www.xml
index d5030806d5b..ed59be78388 100644
--- a/www/public/sitemap_www.xml
+++ b/www/public/sitemap_www.xml
@@ -24,6 +24,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/company</loc>
<changefreq>weekly</changefreq>
@@ -37,13 +43,19 @@
</url>
<url>
- <loc>https://supabase.com/storage</loc>
+ <loc>https://supabase.com/auth</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
- <loc>https://supabase.com/auth</loc>
+ <loc>https://supabase.com/case-studies/[slug]</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
+ <url>
+ <loc>https://supabase.com/storage</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>