Skip to content

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

fix(www): fix partners links and 404 redirects (#51294)

Pamela Chia240e954390bc
diff --git a/apps/docs/content/guides/integrations/build-a-supabase-oauth-integration.mdx b/apps/docs/content/guides/integrations/build-a-supabase-oauth-integration.mdx
index 6e4beb10edf..a0549f9886d 100644
--- a/apps/docs/content/guides/integrations/build-a-supabase-oauth-integration.mdx
+++ b/apps/docs/content/guides/integrations/build-a-supabase-oauth-integration.mdx
@@ -134,7 +134,7 @@ There are a couple common patterns you can consider adding to your integration t
### Store API keys in env variables
-Some integrations, e.g. like [Cloudflare Workers](/partners/integrations/cloudflare-workers) provide convenient access to the API URL and API keys to allow user to speed up development.
+Some integrations, e.g. like [Cloudflare Workers](/partners/catalog/cloudflare) provide convenient access to the API URL and API keys to allow user to speed up development.
Using the management API, you can retrieve a project's API credentials using the [`/projects/{ref}/api-keys` endpoint](https://api.supabase.com/api/v1#/projects/getProjectApiKeys).
diff --git a/apps/www/_blog/2023-06-09-supabase-beta-update-may-2023.mdx b/apps/www/_blog/2023-06-09-supabase-beta-update-may-2023.mdx
index 53ca4ccd846..d2da3231c0f 100644
--- a/apps/www/_blog/2023-06-09-supabase-beta-update-may-2023.mdx
+++ b/apps/www/_blog/2023-06-09-supabase-beta-update-may-2023.mdx
@@ -102,7 +102,7 @@ Bonus track: make sure to also check out [ChartGPT](https://www.chartgpt.dev/),
![Community](/images/blog/2022-june/community.jpg)
-- We worked with Cloudflare on a new integration that makes it super easy to connect your Supabase database from Cloudflare Workers. [Doc](https://supabase.com/partners/integrations/cloudflare-workers)
+- We worked with Cloudflare on a new integration that makes it super easy to connect your Supabase database from Cloudflare Workers. [Doc](https://supabase.com/partners/catalog/cloudflare)
- Deno Fresh Starter: ChatGPT-style doc search. [Blog post](https://deno.com/blog/build-chatgpt-doc-search-with-supabase-fresh)
diff --git a/apps/www/_blog/2023-08-11-launch-week-8-community-highlights.mdx b/apps/www/_blog/2023-08-11-launch-week-8-community-highlights.mdx
index 30fc259fcf8..45991b3ae95 100644
--- a/apps/www/_blog/2023-08-11-launch-week-8-community-highlights.mdx
+++ b/apps/www/_blog/2023-08-11-launch-week-8-community-highlights.mdx
@@ -61,7 +61,7 @@ The past few months we had a focus on integrations and welcomed a lot of new par
### Integrations Marketplace
-We've been running our [Integrations Marketplace](/partners) in “stealth mode” for about a year now and has now grown to [over 60 integrations](/partners/integrations). In the last couple of months, we've added amazing products like [N8N](/partners/integrations/n8n), [Passage by 1 Password](/partners/integrations/passageidentity), and [Refine](/partners/integrations/refine_dev). This Launch Week we've made it easy to [build an integration](/docs/guides/platform/oauth-apps/build-a-supabase-integration#create-an-oauth-app) using OAuth2 and the Management API in the new [Supabase Integrations Marketplace](/blog/supabase-integrations-marketplace). We've started with a few partners to help us build and test the OAuth functionality, including [Cloudflare](/partners/integrations/cloudflare-workers), [Resend](/partners/integrations/resend), [Snaplet](/partners/integrations/snaplet), [Trigger.dev](/partners/integrations/triggerdotdev), [Windmill](/partners/integrations/windmill), and [Vercel](/partners/integrations/vercel).
+We've been running our [Integrations Marketplace](/partners) in “stealth mode” for about a year now and has now grown to [over 60 integrations](/partners/integrations). In the last couple of months, we've added amazing products like [N8N](/partners/integrations/n8n), [Passage by 1 Password](/partners/catalog/passage-identity), and [Refine](/partners/integrations/refine_dev). This Launch Week we've made it easy to [build an integration](/docs/guides/platform/oauth-apps/build-a-supabase-integration#create-an-oauth-app) using OAuth2 and the Management API in the new [Supabase Integrations Marketplace](/blog/supabase-integrations-marketplace). We've started with a few partners to help us build and test the OAuth functionality, including [Cloudflare](/partners/catalog/cloudflare), [Resend](/partners/integrations/resend), Snaplet, [Trigger.dev](/partners/catalog/trigger-dev), [Windmill](/partners/catalog/windmill-labs), and [Vercel](/partners/integrations/vercel).
### pgvector
diff --git a/apps/www/app/partners/[slug]/page.tsx b/apps/www/app/partners/[slug]/page.tsx
index 4aec577e86d..d855023e18a 100644
--- a/apps/www/app/partners/[slug]/page.tsx
+++ b/apps/www/app/partners/[slug]/page.tsx
@@ -1,3 +1,4 @@
+import { getCatalogPartner } from '~/lib/marketplaceDb'
import supabase from '~/lib/supabaseMisc'
import { notFound, redirect } from 'next/navigation'
@@ -17,5 +18,7 @@ export default async function PartnerLegacyPage({ params }: { params: Promise<Pa
if (!partner || partner.type === 'expert') notFound()
- redirect(`/partners/catalog/${partner.slug}`)
+ const catalogPartner = await getCatalogPartner(partner.slug)
+
+ redirect(catalogPartner ? `/partners/catalog/${partner.slug}` : '/partners/catalog')
}
diff --git a/apps/www/app/partners/page.tsx b/apps/www/app/partners/page.tsx
index 8e9dbaa85c7..949afbf1209 100644
--- a/apps/www/app/partners/page.tsx
+++ b/apps/www/app/partners/page.tsx
@@ -2,7 +2,7 @@ import type { Metadata } from 'next'
import PartnersContent from './PartnersContent'
import pageData from '@/data/partners'
-import supabase from '@/lib/supabaseMisc'
+import { listCatalogPartners } from '@/lib/marketplaceDb'
export const revalidate = 1800
@@ -22,14 +22,12 @@ export const metadata: Metadata = {
}
export default async function PartnersPage() {
- const { data: partners } = await supabase
- .from('partners')
- .select('slug,title,logo')
- .eq('approved', true)
- .eq('type', 'technology')
- .order('title')
-
- const all = (partners ?? []) as FeaturedPartner[]
+ const partners = await listCatalogPartners()
+
+ const all: FeaturedPartner[] = partners
+ .filter((p) => p.type === 'technology')
+ .map(({ slug, title, logo }) => ({ slug, title, logo }))
+ .sort((a, b) => a.title.localeCompare(b.title))
const leadSlugs = pageData.featuredPartners.leadSlugs
const lead = leadSlugs
.map((slug) => all.find((p) => p.slug === slug))
diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.js
index 64e1267a2ec..c06ce2d85e3 100644
--- a/apps/www/lib/redirects.js
+++ b/apps/www/lib/redirects.js
@@ -2456,6 +2456,16 @@ module.exports = [
source: '/partners/catalog/aikido-security',
destination: '/partners/catalog/aikido',
},
+ {
+ permanent: true,
+ source: '/partners/catalog/cloudflare-workers',
+ destination: '/partners/catalog/cloudflare',
+ },
+ {
+ permanent: true,
+ source: '/partners/catalog/clickhouse-clickpipes',
+ destination: '/partners/catalog/clickhouse',
+ },
{
permanent: true,
source: '/partners/integrations',
@@ -2489,7 +2499,7 @@ module.exports = [
{
permanent: true,
source: '/docs/guides/integrations/cloudflare-workers',
- destination: '/partners/catalog/cloudflare-workers',
+ destination: '/partners/catalog/cloudflare',
},
{
permanent: true,
@@ -2589,7 +2599,17 @@ module.exports = [
{
permanent: true,
source: '/partners/integrations/atomic_crm',
- destination: '/partners/catalog/atomic-crm',
+ destination: '/partners/catalog',
+ },
+ {
+ permanent: true,
+ source: '/partners/integrations/cloudflare-workers',
+ destination: '/partners/catalog/cloudflare',
+ },
+ {
+ permanent: true,
+ source: '/partners/integrations/clickhouse-clickpipes',
+ destination: '/partners/catalog/clickhouse',
},
{
permanent: true,
@@ -3388,6 +3408,19 @@ module.exports = [
destination: '/dashboard/redeem?code=:code',
permanent: false,
},
+ { permanent: true, source: '/signup', destination: '/dashboard/sign-up' },
+ { permanent: true, source: '/about', destination: '/company' },
+ { permanent: true, source: '/startups', destination: '/solutions/startups' },
+ {
+ permanent: true,
+ source: '/legal/subprocessors',
+ destination: '/legal/customer-resources/subprocessor-list',
+ },
+ {
+ permanent: true,
+ source: '/downloads/docs/Supabase\\+DPA\\+:version.pdf',
+ destination: '/legal/customer-resources/data-processing-addendum',
+ },
// Legacy product .txt URLs → new .md routes
{ permanent: true, source: '/llms/homepage.txt', destination: '/index.md' },
{ permanent: true, source: '/llms/auth.txt', destination: '/auth.md' },