Skip to content

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

update sitemap

Jonathan Summers-Muir970fff6ef818
diff --git a/apps/www/internals/generate-sitemap.mjs b/apps/www/internals/generate-sitemap.mjs
index 03c922d6811..7cb919fe006 100644
--- a/apps/www/internals/generate-sitemap.mjs
+++ b/apps/www/internals/generate-sitemap.mjs
@@ -15,6 +15,7 @@ async function generate() {
'pages/*/*.tsx',
'data/**/*.mdx',
'_blog/*.mdx',
+ '_case-studies/*.mdx',
'_alternatives/*.mdx',
'!pages/index.tsx',
'!data/*.mdx',
@@ -24,6 +25,9 @@ async function generate() {
'!pages/404.js',
])
+ const blogUrl = 'blog'
+ const caseStudiesUrl = 'case-studies'
+
const sitemap = `
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@@ -33,7 +37,8 @@ async function generate() {
const path = page
.replace('pages', '')
// add a `/` for blog posts
- .replace('_blog', '/blog')
+ .replace('_blog', `/${blogUrl}`)
+ .replace('_case-studies', `/${caseStudiesUrl}`)
.replace('_alternatives', '/alternatives')
.replace('.tsx', '')
.replace('.mdx', '')
@@ -49,15 +54,18 @@ async function generate() {
if (route === '/alternatives/[slug]') return null
if (route === '/partners/[slug]') return null
+ if (route === '/case-studies/[slug]') return null
+ if (route === '/launch-week/ticket-image') return null
/**
* Blog based urls
+ * handle removal of dates in filename
*/
- if (route.includes('/blog/')) {
+ if (route.includes(`/${blogUrl}/`)) {
/**
* remove directory from route
*/
- const _route = route.replace('/blog/', '')
+ const _route = route.replace(`/${blogUrl}/`, '')
/**
* remove the date from the file name
*/
@@ -65,7 +73,7 @@ async function generate() {
/**
* reconsruct the route
*/
- route = '/blog/' + substring
+ route = `/${blogUrl}/` + substring
}
return `
diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xml
index 253eb5834a3..3c917920146 100644
--- a/apps/www/public/sitemap_www.xml
+++ b/apps/www/public/sitemap_www.xml
@@ -79,7 +79,7 @@
</url>
<url>
- <loc>https://supabase.com/contact/mfa</loc>
+ <loc>https://supabase.com/edge-functions</loc>
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
@@ -90,6 +90,12 @@
<changefreq>0.5</changefreq>
</url>
+ <url>
+ <loc>https://supabase.com/blog/</loc>
+ <changefreq>weekly</changefreq>
+ <changefreq>0.5</changefreq>
+ </url>
+
<url>
<loc>https://supabase.com/legal/dpa</loc>
<changefreq>weekly</changefreq>
@@ -1065,25 +1071,41 @@
</url>
<url>
+<<<<<<< HEAD
<loc>https://supabase.com/blog/case-study-happyteams</loc>
+=======
+ <loc>https://supabase.com/case-studies/epsilon3</loc>
+>>>>>>> c9a03fe27 (update sitemap)
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
+<<<<<<< HEAD
<loc>https://supabase.com/blog/type-constraints-in-65-lines-of-sql</loc>
+=======
+ <loc>https://supabase.com/case-studies/mobbin</loc>
+>>>>>>> c9a03fe27 (update sitemap)
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
+<<<<<<< HEAD
<loc>https://supabase.com/blog/geo-queries-with-postgis-in-ionic-angular</loc>
+=======
+ <loc>https://supabase.com/case-studies/replenysh</loc>
+>>>>>>> c9a03fe27 (update sitemap)
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>
<url>
+<<<<<<< HEAD
<loc>https://supabase.com/blog/supabase-beta-update-february-2023</loc>
+=======
+ <loc>https://supabase.com/case-studies/xendit</loc>
+>>>>>>> c9a03fe27 (update sitemap)
<changefreq>weekly</changefreq>
<changefreq>0.5</changefreq>
</url>