The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
partners sitemap added
mvozbranyuk0deed530ae65
diff --git a/apps/www/pages/sitemap_www-partners.xml.tsx b/apps/www/pages/sitemap_www-partners.xml.tsxnew file mode 100644index 00000000000..9a7eb872c84--- /dev/null+++ b/apps/www/pages/sitemap_www-partners.xml.tsx@@ -0,0 +1,32 @@+import {NextPageContext} from 'next'+import React from 'react'+import supabase from '~/lib/supabase'++class Sitemap extends React.Component {+ static async getInitialProps({res}: NextPageContext) {+ res!.setHeader('Content-Type', 'text/xml')++ const { data: slugs } = await supabase.from('partners').select('slug,type')++ let sitemap = `<?xml version="1.0" encoding="UTF-8"?>\n`++ sitemap += ` <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n`++ if (slugs && slugs.length > 0) {+ slugs.forEach(({slug, type}) => {+ sitemap += `<url>\n`+ sitemap += ` <loc>https://supabase.com/partners/${type === "expert" ? "experts" : "integrations"}/${slug}</loc>\n`+ sitemap += ` <changefreq>weekly</changefreq>\n`+ sitemap += ` <changefreq>0.5</changefreq>\n`+ sitemap += `</url>\n`+ })+ }++ sitemap += `</urlset>`++ res!.write(sitemap)+ res!.end()+ }+}++export default Sitemap\ No newline at end of filediff --git a/apps/www/public/sitemap.xml b/apps/www/public/sitemap.xmlindex aa271b28c9b..3d7a7eb5d61 100644--- a/apps/www/public/sitemap.xml+++ b/apps/www/public/sitemap.xml@@ -3,6 +3,9 @@<sitemap><loc>https://supabase.com/sitemap_www.xml</loc></sitemap>+ <sitemap>+ <loc>https://supabase.com/sitemap_www-partners.xml</loc>+ </sitemap><sitemap><loc>https://supabase.com/docs/sitemap.xml</loc></sitemap>