The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(www): stop cross-zone link prefetch (#51066)
Pamela Chiaa9078612f23b
diff --git a/apps/www/_go/events/accenture-reinvention-2026/contest.tsx b/apps/www/_go/events/accenture-reinvention-2026/contest.tsxindex a0c3b136a0a..9c2123e2381 100644--- a/apps/www/_go/events/accenture-reinvention-2026/contest.tsx+++ b/apps/www/_go/events/accenture-reinvention-2026/contest.tsx@@ -71,13 +71,13 @@ const page: GoPageInput = {</p><div className="flex flex-wrap items-center justify-center gap-3"><Button asChild variant="primary" size="medium">- <Link+ <ahref="https://supabase.com/docs/guides/getting-started/ai-skills"target="_blank"rel="noopener noreferrer">Learn about Supabase AI Tools- </Link>+ </a></Button><Button asChild size="medium"><Link@@ -104,7 +104,7 @@ const page: GoPageInput = {<li>Complete these steps by Monday, May 4, 2026 at 12:00 PM PST</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx b/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsxindex 80b4e3df8be..6a2603d919e 100644--- a/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx+++ b/apps/www/_go/events/ai-engineer-europe-2026/contest-thank-you.tsx@@ -22,7 +22,7 @@ const page: GoPageInput = {children: (<div className="flex flex-col sm:flex-row items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/dashboard">Go to dashboard</Link>+ <a href="https://supabase.com/dashboard">Go to dashboard</a></Button><Button asChild variant="outline" size="small"><Link href="https://supabase.com">Visit supabase.com</Link>diff --git a/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx b/apps/www/_go/events/ai-engineer-europe-2026/contest.tsxindex 1547ed1e7bc..117f554b61a 100644--- a/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx+++ b/apps/www/_go/events/ai-engineer-europe-2026/contest.tsx@@ -82,7 +82,7 @@ const page: GoPageInput = {<li>Complete these steps by the contest deadline</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/dash-2026/contest.tsx b/apps/www/_go/events/dash-2026/contest.tsxindex aded5437805..d95756b3f2f 100644--- a/apps/www/_go/events/dash-2026/contest.tsx+++ b/apps/www/_go/events/dash-2026/contest.tsx@@ -85,7 +85,7 @@ const page: GoPageInput = {<li>Complete these steps by the deadline in your post-event note</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx b/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsxindex 3ae184c25b9..9c72fcc5a7e 100644--- a/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx+++ b/apps/www/_go/events/mcp-dev-nyc-2026/contest-thank-you.tsx@@ -22,7 +22,7 @@ const page: GoPageInput = {children: (<div className="flex flex-col sm:flex-row items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/dashboard">Go to dashboard</Link>+ <a href="https://supabase.com/dashboard">Go to dashboard</a></Button><Button asChild variant="outline" size="small"><Link href="https://supabase.com">Visit supabase.com</Link>diff --git a/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx b/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsxindex af3ee0ccc23..090a945c9e8 100644--- a/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx+++ b/apps/www/_go/events/mcp-dev-nyc-2026/contest.tsx@@ -84,7 +84,7 @@ const page: GoPageInput = {</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx b/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsxindex f5354497172..0feefeefe44 100644--- a/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx+++ b/apps/www/_go/events/pgconf-dev-2026/contest-thank-you.tsx@@ -22,7 +22,7 @@ const page: GoPageInput = {children: (<div className="flex flex-col sm:flex-row items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/dashboard">Go to dashboard</Link>+ <a href="https://supabase.com/dashboard">Go to dashboard</a></Button><Button asChild variant="outline" size="small"><Link href="https://supabase.com">Visit supabase.com</Link>diff --git a/apps/www/_go/events/pgconf-dev-2026/contest.tsx b/apps/www/_go/events/pgconf-dev-2026/contest.tsxindex 652e82e44a7..ad8526bbc55 100644--- a/apps/www/_go/events/pgconf-dev-2026/contest.tsx+++ b/apps/www/_go/events/pgconf-dev-2026/contest.tsx@@ -84,7 +84,7 @@ const page: GoPageInput = {</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx b/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsxindex c1d81ff7309..50fa7eeef07 100644--- a/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx+++ b/apps/www/_go/events/postgres-summit-2026/contest-thank-you.tsx@@ -22,7 +22,7 @@ const page: GoPageInput = {children: (<div className="flex flex-col sm:flex-row items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/dashboard">Go to dashboard</Link>+ <a href="https://supabase.com/dashboard">Go to dashboard</a></Button><Button asChild variant="outline" size="small"><Link href="https://supabase.com">Visit supabase.com</Link>diff --git a/apps/www/_go/events/postgres-summit-2026/contest.tsx b/apps/www/_go/events/postgres-summit-2026/contest.tsxindex 47274a84b88..93c1af09694 100644--- a/apps/www/_go/events/postgres-summit-2026/contest.tsx+++ b/apps/www/_go/events/postgres-summit-2026/contest.tsx@@ -75,7 +75,7 @@ const page: GoPageInput = {</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx b/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsxindex 632e1b99976..a5f7b172bd2 100644--- a/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx+++ b/apps/www/_go/events/postgresconf-sjc-2026/contest-thank-you.tsx@@ -23,7 +23,7 @@ const page: GoPageInput = {children: (<div className="flex flex-col sm:flex-row items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/dashboard">Go to dashboard</Link>+ <a href="https://supabase.com/dashboard">Go to dashboard</a></Button><Button asChild variant="outline" size="small"><Link href="https://supabase.com">Visit supabase.com</Link>diff --git a/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx b/apps/www/_go/events/postgresconf-sjc-2026/contest.tsxindex 4fe4c326781..8901ff1f63f 100644--- a/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx+++ b/apps/www/_go/events/postgresconf-sjc-2026/contest.tsx@@ -119,7 +119,7 @@ const page: GoPageInput = {<li>Complete these steps by Monday, September 14, 2026 at 12:00 PM PST</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/startup-grind-2026/contest.tsx b/apps/www/_go/events/startup-grind-2026/contest.tsxindex 01c3afabc31..db8761b2eeb 100644--- a/apps/www/_go/events/startup-grind-2026/contest.tsx+++ b/apps/www/_go/events/startup-grind-2026/contest.tsx@@ -45,7 +45,7 @@ const page: GoPageInput = {<li>Complete these steps by Monday, May 11, 2026 at 12:00 PM PST</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/stripe-sessions-2026/contest.tsx b/apps/www/_go/events/stripe-sessions-2026/contest.tsxindex 71cc333b550..66d91148c81 100644--- a/apps/www/_go/events/stripe-sessions-2026/contest.tsx+++ b/apps/www/_go/events/stripe-sessions-2026/contest.tsx@@ -62,12 +62,12 @@ stripe projects env --sync`}</code>Connect your Stripe account to Supabase and sync your payments, customers, andsubscriptions into a live Postgres schema.</p>- <Link+ <ahref="https://supabase.com/dashboard/project/_/integrations"className="text-foreground underline">Install the Stripe Sync Engine →- </Link>+ </a></div><p className="text-foreground-light text-sm">diff --git a/apps/www/_go/events/stripe-sessions-2026/party.tsx b/apps/www/_go/events/stripe-sessions-2026/party.tsxindex 83238bc8992..0cbc564741a 100644--- a/apps/www/_go/events/stripe-sessions-2026/party.tsx+++ b/apps/www/_go/events/stripe-sessions-2026/party.tsx@@ -34,7 +34,7 @@ const page: GoPageInput = {title: "Tonight's hosts",children: (<>- <Link+ <ahref="https://supabase.com/dashboard"className="flex flex-col items-center gap-4 rounded-xl border border-muted p-8 text-center transition-colors hover:border-foreground-muted hover:bg-surface-100">@@ -43,7 +43,7 @@ const page: GoPageInput = {<p className="text-foreground-light text-sm leading-relaxed">Open-source Postgres development platform</p>- </Link>+ </a><Linkhref="https://stigg.io"className="flex flex-col items-center gap-4 rounded-xl border border-muted p-8 text-center transition-colors hover:border-foreground-muted hover:bg-surface-100"@@ -104,7 +104,7 @@ const page: GoPageInput = {<li>Complete these steps by Monday, May 11, 2026 at 12:00 PM PST</li></ol><Button asChild variant="primary" size="medium">- <Link href="https://supabase.com/dashboard">Start with Supabase</Link>+ <a href="https://supabase.com/dashboard">Start with Supabase</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/events/sxsw-2026/contest.tsx b/apps/www/_go/events/sxsw-2026/contest.tsxindex 4d18e0f0f29..b4fbb998be6 100644--- a/apps/www/_go/events/sxsw-2026/contest.tsx+++ b/apps/www/_go/events/sxsw-2026/contest.tsx@@ -46,7 +46,7 @@ const page: GoPageInput = {</ol><div className="flex flex-col sm:flex-row items-center gap-4"><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your Supabase account</Link>+ <a href="https://supabase.com/dashboard">Create your Supabase account</a></Button><Button asChild variant="outline" size="medium"><Link href="https://dreambase.ai">Sign up for Dreambase</Link>diff --git a/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx b/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsxindex ebd03445927..4fbb8f49e1d 100644--- a/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx+++ b/apps/www/_go/events/vercel-ship-sydney-2026/contest-thank-you.tsx@@ -22,7 +22,7 @@ const page: GoPageInput = {children: (<div className="flex flex-col sm:flex-row items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/dashboard">Go to dashboard</Link>+ <a href="https://supabase.com/dashboard">Go to dashboard</a></Button><Button asChild variant="outline" size="small"><Link href="https://supabase.com">Visit supabase.com</Link>diff --git a/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx b/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsxindex f3ed1a4b347..611bd448c5a 100644--- a/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx+++ b/apps/www/_go/events/vercel-ship-sydney-2026/contest.tsx@@ -43,7 +43,7 @@ const page: GoPageInput = {<li>Complete these steps by the contest deadline</li></ol><Button asChild size="medium">- <Link href="https://supabase.com/dashboard">Create your account</Link>+ <a href="https://supabase.com/dashboard">Create your account</a></Button><p className="text-xs text-foreground-lighter mt-4">No purchase necessary. Void where prohibited.{' '}diff --git a/apps/www/_go/thank-you/example-thank-you.tsx b/apps/www/_go/thank-you/example-thank-you.tsxindex 80641077db9..87b12d5dfec 100644--- a/apps/www/_go/thank-you/example-thank-you.tsx+++ b/apps/www/_go/thank-you/example-thank-you.tsx@@ -1,5 +1,4 @@import type { GoPageInput } from 'marketing'-import Link from 'next/link'import { Button } from 'ui'const page: GoPageInput = {@@ -22,10 +21,10 @@ const page: GoPageInput = {children: (<div className="flex items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/docs">Read the docs</Link>+ <a href="https://supabase.com/docs">Read the docs</a></Button><Button asChild variant="text" size="small">- <Link href="https://supabase.com/docs/guides">Watch tutorials</Link>+ <a href="https://supabase.com/docs/guides">Watch tutorials</a></Button></div>),diff --git a/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx b/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsxindex d5c8b91727c..6ce6a357d5c 100644--- a/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx+++ b/apps/www/_go/webinar/agency-webinar-mar2026-thankyou.tsx@@ -1,5 +1,4 @@import type { GoPageInput } from 'marketing'-import Link from 'next/link'import { Button } from 'ui'const page: GoPageInput = {@@ -22,10 +21,10 @@ const page: GoPageInput = {children: (<div className="flex items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/docs">Read the docs</Link>+ <a href="https://supabase.com/docs">Read the docs</a></Button><Button asChild variant="text" size="small">- <Link href="https://supabase.com/dashboard">Start a project</Link>+ <a href="https://supabase.com/dashboard">Start a project</a></Button></div>),diff --git a/apps/www/_go/webinar/bolt-webinar-thank-you.tsx b/apps/www/_go/webinar/bolt-webinar-thank-you.tsxindex 88a4369adbc..065fe977179 100644--- a/apps/www/_go/webinar/bolt-webinar-thank-you.tsx+++ b/apps/www/_go/webinar/bolt-webinar-thank-you.tsx@@ -1,5 +1,4 @@import type { GoPageInput } from 'marketing'-import Link from 'next/link'import { Button } from 'ui'const page: GoPageInput = {@@ -21,10 +20,10 @@ const page: GoPageInput = {children: (<div className="flex items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/docs">Read the docs</Link>+ <a href="https://supabase.com/docs">Read the docs</a></Button><Button asChild variant="text" size="small">- <Link href="https://supabase.com/dashboard">Start a project</Link>+ <a href="https://supabase.com/dashboard">Start a project</a></Button></div>),diff --git a/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx b/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsxindex 310700cf987..d2110e29c7d 100644--- a/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx+++ b/apps/www/_go/webinar/figma-webinar-may2026-thankyou.tsx@@ -1,5 +1,4 @@import type { GoPageInput } from 'marketing'-import Link from 'next/link'import { Button } from 'ui'const page: GoPageInput = {@@ -22,10 +21,10 @@ const page: GoPageInput = {children: (<div className="flex items-center justify-center gap-4"><Button asChild size="small">- <Link href="https://supabase.com/docs">Read the docs</Link>+ <a href="https://supabase.com/docs">Read the docs</a></Button><Button asChild variant="text" size="small">- <Link href="https://supabase.com/dashboard">Start a project</Link>+ <a href="https://supabase.com/dashboard">Start a project</a></Button></div>),diff --git a/apps/www/app/(home)/_components/BuiltWithSupabaseSection.tsx b/apps/www/app/(home)/_components/BuiltWithSupabaseSection.tsxindex 17cb65d331d..80a86d4ee06 100644--- a/apps/www/app/(home)/_components/BuiltWithSupabaseSection.tsx+++ b/apps/www/app/(home)/_components/BuiltWithSupabaseSection.tsx@@ -108,12 +108,12 @@ export function BuiltWithSupabaseSection() {Kickstart your next project <br /><span className="text-foreground">with production ready templates</span></h3>- <Link+ <ahref="/docs/guides/examples"className="text-sm text-foreground-light hover:text-foreground underline">View all examples- </Link>+ </a></div><div>diff --git a/apps/www/app/(home)/_components/CTASection.tsx b/apps/www/app/(home)/_components/CTASection.tsxindex 1423c100f41..f6850df860c 100644--- a/apps/www/app/(home)/_components/CTASection.tsx+++ b/apps/www/app/(home)/_components/CTASection.tsx@@ -20,7 +20,7 @@ export function CTASection() {</h2><div className="flex items-center gap-2"><Button variant="primary" asChild size="medium">- <Link+ <ahref={getDashboardCtaHref(isLoggedIn)}onClick={() =>sendTelemetryEvent({@@ -30,7 +30,7 @@ export function CTASection() {}>Start your project- </Link>+ </a></Button><Button asChild size="medium"><Linkdiff --git a/apps/www/app/(home)/_components/FrameworksSectionClient.tsx b/apps/www/app/(home)/_components/FrameworksSectionClient.tsxindex d92f10d2acb..608b7eccd52 100644--- a/apps/www/app/(home)/_components/FrameworksSectionClient.tsx+++ b/apps/www/app/(home)/_components/FrameworksSectionClient.tsx@@ -6,6 +6,7 @@ import { useState } from 'react'import { cn } from 'ui'import SectionContainerWithCn from '../../../components/Layouts/SectionContainerWithCn'+import { isCrossZoneHref } from '@/lib/cross-zone'type Framework = {name: string@@ -19,6 +20,27 @@ type Framework = {export function FrameworksSectionClient({ frameworks }: { frameworks: Framework[] }) {const [activeIdx, setActiveIdx] = useState(0)const active = frameworks[activeIdx]+ const docsLinkLabel = (+ <>+ {`Read docs for ${active.name}`}+ <svg+ width={12}+ height={12}+ viewBox="0 0 12 12"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ className="shrink-0"+ >+ <path+ d="M3.5 2.5H9.5V8.5M9.5 2.5L2.5 9.5"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </>+ )const handleTabChange = (index: number) => {setActiveIdx(index)@@ -112,28 +134,21 @@ export function FrameworksSectionClient({ frameworks }: { frameworks: Framework[/></motion.div></AnimatePresence>- <Link- href={active.docsUrl}- className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap"- >- {`Read docs for ${active.name}`}- <svg- width={12}- height={12}- viewBox="0 0 12 12"- fill="none"- xmlns="http://www.w3.org/2000/svg"- className="shrink-0"+ {isCrossZoneHref(active.docsUrl) ? (+ <a+ href={active.docsUrl}+ className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">- <path- d="M3.5 2.5H9.5V8.5M9.5 2.5L2.5 9.5"- stroke="currentColor"- strokeWidth={1.5}- strokeLinecap="round"- strokeLinejoin="round"- />- </svg>- </Link>+ {docsLinkLabel}+ </a>+ ) : (+ <Link+ href={active.docsUrl}+ className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap"+ >+ {docsLinkLabel}+ </Link>+ )}</div></div></div>diff --git a/apps/www/app/(home)/_components/Hero.tsx b/apps/www/app/(home)/_components/Hero.tsxindex e10b92618c5..972fb74c727 100644--- a/apps/www/app/(home)/_components/Hero.tsx+++ b/apps/www/app/(home)/_components/Hero.tsx@@ -27,7 +27,7 @@ export function Hero() {</div><div className="flex items-center gap-2"><Button variant="primary" asChild size="medium">- <Link+ <ahref={getDashboardCtaHref(isLoggedIn)}onClick={() =>sendTelemetryEvent({@@ -37,7 +37,7 @@ export function Hero() {}>Start your project- </Link>+ </a></Button><Button asChild size="medium"><Linkdiff --git a/apps/www/app/(products)/auth/_components/ApiSectionClient.tsx b/apps/www/app/(products)/auth/_components/ApiSectionClient.tsxindex 0285ce47920..ad30e36cbee 100644--- a/apps/www/app/(products)/auth/_components/ApiSectionClient.tsx+++ b/apps/www/app/(products)/auth/_components/ApiSectionClient.tsx@@ -3,7 +3,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'import { ChevronDown, Globe, KeyRound, LogIn, UserPlus } from 'lucide-react'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -200,7 +199,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {/></motion.div></AnimatePresence>- <Link+ <ahref="/docs/guides/auth"className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">@@ -222,7 +221,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {strokeLinejoin="round"/></svg>- </Link>+ </a></motion.div></div></SectionContainerWithCn>diff --git a/apps/www/app/(products)/auth/_components/Hero.tsx b/apps/www/app/(products)/auth/_components/Hero.tsxindex ccd37f2cb40..f450bb73fca 100644--- a/apps/www/app/(products)/auth/_components/Hero.tsx+++ b/apps/www/app/(products)/auth/_components/Hero.tsx@@ -1,5 +1,4 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'-import Link from 'next/link'import { Button } from 'ui'import { StartYourProjectButton } from '@/components/StartYourProjectButton'@@ -21,7 +20,7 @@ export function Hero() {<div className="flex items-center gap-2"><StartYourProjectButton /><Button asChild size="medium">- <Link href="/docs/guides/auth">Documentation</Link>+ <a href="/docs/guides/auth">Documentation</a></Button></div></div>diff --git a/apps/www/app/(products)/auth/_components/HighlightsSection.tsx b/apps/www/app/(products)/auth/_components/HighlightsSection.tsxindex 74e46741de3..bf7041acbd7 100644--- a/apps/www/app/(products)/auth/_components/HighlightsSection.tsx+++ b/apps/www/app/(products)/auth/_components/HighlightsSection.tsx@@ -3,6 +3,8 @@ import { Check } from 'lucide-react'import Link from 'next/link'import { Button } from 'ui'+import { isCrossZoneHref } from '@/lib/cross-zone'+const HIGHLIGHTS = [{title: 'Multi-Factor Authentication',@@ -65,7 +67,11 @@ export function HighlightsSection() {</div><div className="mt-6"><Button size="small" asChild>- <Link href={highlight.cta.href}>{highlight.cta.label}</Link>+ {isCrossZoneHref(highlight.cta.href) ? (+ <a href={highlight.cta.href}>{highlight.cta.label}</a>+ ) : (+ <Link href={highlight.cta.href}>{highlight.cta.label}</Link>+ )}</Button></div></div>diff --git a/apps/www/app/(products)/auth/_components/RLSSectionClient.tsx b/apps/www/app/(products)/auth/_components/RLSSectionClient.tsxindex 453dafe44e0..af4d867dce3 100644--- a/apps/www/app/(products)/auth/_components/RLSSectionClient.tsx+++ b/apps/www/app/(products)/auth/_components/RLSSectionClient.tsx@@ -2,7 +2,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -178,7 +177,7 @@ export function RLSSectionClient({ examples }: { examples: RLSExample[] }) {/></motion.div></AnimatePresence>- <Link+ <ahref="/docs/guides/database/postgres/row-level-security"className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">@@ -200,7 +199,7 @@ export function RLSSectionClient({ examples }: { examples: RLSExample[] }) {strokeLinejoin="round"/></svg>- </Link>+ </a></motion.div></div></SectionContainerWithCn>diff --git a/apps/www/app/(products)/database/_components/ApiSectionClient.tsx b/apps/www/app/(products)/database/_components/ApiSectionClient.tsxindex 342014446ba..10ffae261a4 100644--- a/apps/www/app/(products)/database/_components/ApiSectionClient.tsx+++ b/apps/www/app/(products)/database/_components/ApiSectionClient.tsx@@ -3,7 +3,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'import { ArrowDownUp, ChevronDown, Filter, Plus, Search } from 'lucide-react'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -188,7 +187,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {/></motion.div></AnimatePresence>- <Link+ <ahref="/docs/guides/database"className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">@@ -209,7 +208,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {strokeLinejoin="round"/></svg>- </Link>+ </a></motion.div></div></SectionContainerWithCn>diff --git a/apps/www/app/(products)/database/_components/Hero.tsx b/apps/www/app/(products)/database/_components/Hero.tsxindex 8d6a35bc1e9..e9e8a277e43 100644--- a/apps/www/app/(products)/database/_components/Hero.tsx+++ b/apps/www/app/(products)/database/_components/Hero.tsx@@ -1,5 +1,4 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'-import Link from 'next/link'import { Button } from 'ui'import { StartYourProjectButton } from '@/components/StartYourProjectButton'@@ -21,7 +20,7 @@ export function Hero() {<div className="flex items-center gap-2"><StartYourProjectButton /><Button asChild size="medium">- <Link href="/docs/guides/database/overview">Documentation</Link>+ <a href="/docs/guides/database/overview">Documentation</a></Button></div></div>diff --git a/apps/www/app/(products)/database/_components/HighlightsSection.tsx b/apps/www/app/(products)/database/_components/HighlightsSection.tsxindex 71f2b94c573..cbe7ef15c8e 100644--- a/apps/www/app/(products)/database/_components/HighlightsSection.tsx+++ b/apps/www/app/(products)/database/_components/HighlightsSection.tsx@@ -4,6 +4,8 @@ import Image from 'next/image'import Link from 'next/link'import { Badge, Button } from 'ui'+import { isCrossZoneHref } from '@/lib/cross-zone'+type Highlight = {title: stringbadge?: string@@ -75,7 +77,11 @@ export function HighlightsSection() {</div><div className="mt-6"><Button size="small" asChild>- <Link href={highlight.cta.href}>{highlight.cta.label}</Link>+ {isCrossZoneHref(highlight.cta.href) ? (+ <a href={highlight.cta.href}>{highlight.cta.label}</a>+ ) : (+ <Link href={highlight.cta.href}>{highlight.cta.label}</Link>+ )}</Button></div></div>diff --git a/apps/www/app/(products)/edge-functions/_components/CTASection.tsx b/apps/www/app/(products)/edge-functions/_components/CTASection.tsxindex 658eb674196..a13b23887ec 100644--- a/apps/www/app/(products)/edge-functions/_components/CTASection.tsx+++ b/apps/www/app/(products)/edge-functions/_components/CTASection.tsx@@ -2,7 +2,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'-import Link from 'next/link'import { useEffect, useRef, useState } from 'react'import { Button } from 'ui'@@ -88,7 +87,7 @@ export function CTASection() {<div className="flex items-center gap-2"><StartYourProjectButton /><Button asChild size="medium">- <Link href="/docs/guides/functions/quickstart">Quickstart guide</Link>+ <a href="/docs/guides/functions/quickstart">Quickstart guide</a></Button></div></div>diff --git a/apps/www/app/(products)/edge-functions/_components/ExamplesSection.tsx b/apps/www/app/(products)/edge-functions/_components/ExamplesSection.tsxindex c88ad81fbb9..59c58503e42 100644--- a/apps/www/app/(products)/edge-functions/_components/ExamplesSection.tsx+++ b/apps/www/app/(products)/edge-functions/_components/ExamplesSection.tsx@@ -25,12 +25,12 @@ export function ExamplesSection() {What you can build <br /><span className="text-foreground">with Edge Functions</span></h3>- <Link+ <ahref="/docs/guides/functions#examples"className="text-sm text-foreground-light hover:text-foreground underline">View all examples- </Link>+ </a></div>{/* Cards */}diff --git a/apps/www/app/(products)/edge-functions/_components/GlobalPresenceSection.tsx b/apps/www/app/(products)/edge-functions/_components/GlobalPresenceSection.tsxindex 437599640f9..223bd75bf6d 100644--- a/apps/www/app/(products)/edge-functions/_components/GlobalPresenceSection.tsx+++ b/apps/www/app/(products)/edge-functions/_components/GlobalPresenceSection.tsx@@ -1,5 +1,3 @@-import Link from 'next/link'-import SectionContainerWithCn from '../../../../components/Layouts/SectionContainerWithCn'const features = [@@ -8,12 +6,12 @@ const features = [paragraph: (<>Edge functions run globally or can be{' '}- <Link+ <ahref="https://supabase.com/docs/guides/functions/regional-invocation"className="underline hover:text-foreground-light transition-colors">pinned to your database's proximity- </Link>+ </a></>),},diff --git a/apps/www/app/(products)/edge-functions/_components/Hero.tsx b/apps/www/app/(products)/edge-functions/_components/Hero.tsxindex 57665fcfc2e..d1aeadd65ef 100644--- a/apps/www/app/(products)/edge-functions/_components/Hero.tsx+++ b/apps/www/app/(products)/edge-functions/_components/Hero.tsx@@ -1,5 +1,4 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'-import Link from 'next/link'import { Button } from 'ui'import { Highlights } from './Highlights'@@ -22,7 +21,7 @@ export function Hero() {<div className="flex items-center gap-2"><StartYourProjectButton /><Button asChild size="medium">- <Link href="/docs/guides/functions">Documentation</Link>+ <a href="/docs/guides/functions">Documentation</a></Button></div></div>diff --git a/apps/www/app/(products)/edge-functions/_components/IntegratesSectionClient.tsx b/apps/www/app/(products)/edge-functions/_components/IntegratesSectionClient.tsxindex 0587801d4a3..56dddfac327 100644--- a/apps/www/app/(products)/edge-functions/_components/IntegratesSectionClient.tsx+++ b/apps/www/app/(products)/edge-functions/_components/IntegratesSectionClient.tsx@@ -3,7 +3,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'import { Database, HardDrive, Shield, Webhook, Zap } from 'lucide-react'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -197,7 +196,7 @@ export function IntegratesSectionClient({ useCases }: { useCases: UseCase[] }) {<p className="text-sm text-foreground-lighter">{active.paragraph}</p></motion.div></AnimatePresence>- <Link+ <ahref="/docs/guides/functions"className="flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap shrink-0">@@ -219,7 +218,7 @@ export function IntegratesSectionClient({ useCases }: { useCases: UseCase[] }) {strokeLinejoin="round"/></svg>- </Link>+ </a></div></div></div>diff --git a/apps/www/app/(products)/edge-functions/_components/LocalDXSection.tsx b/apps/www/app/(products)/edge-functions/_components/LocalDXSection.tsxindex 86588996ef0..5937c75708a 100644--- a/apps/www/app/(products)/edge-functions/_components/LocalDXSection.tsx+++ b/apps/www/app/(products)/edge-functions/_components/LocalDXSection.tsx@@ -83,14 +83,14 @@ function CICard() {<h4 className="text-foreground text-base font-medium">Continuous Integration</h4><p className="text-foreground-lighter text-sm">Use the{' '}- <Link+ <ahref="https://supabase.com/docs/guides/functions/deploy#cicd-deployment"className="underline hover:text-foreground-light transition-colors"target="_blank"rel="noopener noreferrer">Supabase CLI with GitHub actions- </Link>{' '}+ </a>{' '}to preview and deploy your functions along with the rest of your application</p></div>diff --git a/apps/www/app/(products)/realtime/_components/ApiSectionClient.tsx b/apps/www/app/(products)/realtime/_components/ApiSectionClient.tsxindex cfcd68ec584..86a16180b91 100644--- a/apps/www/app/(products)/realtime/_components/ApiSectionClient.tsx+++ b/apps/www/app/(products)/realtime/_components/ApiSectionClient.tsx@@ -3,7 +3,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'import { Database, Radio, Users } from 'lucide-react'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -167,7 +166,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {/></motion.div></AnimatePresence>- <Link+ <ahref="/docs/guides/realtime"className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">@@ -188,7 +187,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {strokeLinejoin="round"/></svg>- </Link>+ </a></motion.div></div></SectionContainerWithCn>diff --git a/apps/www/app/(products)/realtime/_components/Hero.tsx b/apps/www/app/(products)/realtime/_components/Hero.tsxindex 7dd04c79cd3..47b7f69eff5 100644--- a/apps/www/app/(products)/realtime/_components/Hero.tsx+++ b/apps/www/app/(products)/realtime/_components/Hero.tsx@@ -1,5 +1,4 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'-import Link from 'next/link'import { Button } from 'ui'import { StartYourProjectButton } from '@/components/StartYourProjectButton'@@ -21,7 +20,7 @@ export function Hero() {<div className="flex items-center gap-2"><StartYourProjectButton /><Button asChild size="medium">- <Link href="/docs/guides/realtime">Documentation</Link>+ <a href="/docs/guides/realtime">Documentation</a></Button></div></div>diff --git a/apps/www/app/(products)/storage/_components/ApiSectionClient.tsx b/apps/www/app/(products)/storage/_components/ApiSectionClient.tsxindex a0abc97d11b..3809e5106b8 100644--- a/apps/www/app/(products)/storage/_components/ApiSectionClient.tsx+++ b/apps/www/app/(products)/storage/_components/ApiSectionClient.tsx@@ -3,7 +3,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'import { ArrowRightLeft, ChevronDown, Download, List, Upload } from 'lucide-react'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -189,7 +188,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {/></motion.div></AnimatePresence>- <Link+ <ahref="/docs/guides/storage"className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">@@ -210,7 +209,7 @@ export function ApiSectionClient({ examples }: { examples: ApiExample[] }) {strokeLinejoin="round"/></svg>- </Link>+ </a></motion.div></div></SectionContainerWithCn>diff --git a/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx b/apps/www/app/(products)/storage/_components/BucketTypesSection.tsxindex f81c8b39ab3..35dacee0d39 100644--- a/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx+++ b/apps/www/app/(products)/storage/_components/BucketTypesSection.tsx@@ -3,6 +3,8 @@ import { Check } from 'lucide-react'import Link from 'next/link'import { Button } from 'ui'+import { isCrossZoneHref } from '@/lib/cross-zone'+const BUCKET_TYPES = [{title: 'Files buckets',@@ -65,7 +67,11 @@ export function BucketTypesSection() {</div><div className="mt-6"><Button size="small" asChild>- <Link href={bucket.cta.href}>{bucket.cta.label}</Link>+ {isCrossZoneHref(bucket.cta.href) ? (+ <a href={bucket.cta.href}>{bucket.cta.label}</a>+ ) : (+ <Link href={bucket.cta.href}>{bucket.cta.label}</Link>+ )}</Button></div></div>diff --git a/apps/www/app/(products)/storage/_components/Hero.tsx b/apps/www/app/(products)/storage/_components/Hero.tsxindex 4e6d340841e..7f6cf68618f 100644--- a/apps/www/app/(products)/storage/_components/Hero.tsx+++ b/apps/www/app/(products)/storage/_components/Hero.tsx@@ -1,5 +1,4 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'-import Link from 'next/link'import { Button } from 'ui'import { StartYourProjectButton } from '@/components/StartYourProjectButton'@@ -21,7 +20,7 @@ export function Hero() {<div className="flex items-center gap-2"><StartYourProjectButton /><Button asChild size="medium">- <Link href="/docs/guides/storage">Documentation</Link>+ <a href="/docs/guides/storage">Documentation</a></Button></div></div>diff --git a/apps/www/app/(products)/storage/_components/PermissionsSectionClient.tsx b/apps/www/app/(products)/storage/_components/PermissionsSectionClient.tsxindex d463a0b887b..57af15fd110 100644--- a/apps/www/app/(products)/storage/_components/PermissionsSectionClient.tsx+++ b/apps/www/app/(products)/storage/_components/PermissionsSectionClient.tsx@@ -2,7 +2,6 @@import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import { AnimatePresence, motion, useInView } from 'framer-motion'-import Link from 'next/link'import { useCallback, useEffect, useRef, useState } from 'react'import { cn } from 'ui'@@ -167,7 +166,7 @@ export function PermissionsSectionClient({ examples }: { examples: PermissionExa/></motion.div></AnimatePresence>- <Link+ <ahref="/docs/reference/javascript/file-buckets-createbucket"className="absolute bottom-4 right-4 flex items-center gap-1.5 rounded-full bg-surface-100 border border-border px-3 py-1.5 text-xs text-foreground-light hover:text-foreground hover:bg-surface-200 transition-colors whitespace-nowrap">@@ -188,7 +187,7 @@ export function PermissionsSectionClient({ examples }: { examples: PermissionExastrokeLinejoin="round"/></svg>- </Link>+ </a></motion.div></div></SectionContainerWithCn>diff --git a/apps/www/app/partners/PartnersContent.tsx b/apps/www/app/partners/PartnersContent.tsxindex 8744b8fe019..49429aae35f 100644--- a/apps/www/app/partners/PartnersContent.tsx+++ b/apps/www/app/partners/PartnersContent.tsx@@ -14,6 +14,7 @@ import Panel from '@/components/Panel'import BecomeAPartner from '@/components/Partners/BecomeAPartner'import ProductHeaderCentered from '@/components/Sections/ProductHeaderCentered'import pageData, { type PARTNER_TIER } from '@/data/partners'+import { isCrossZoneHref } from '@/lib/cross-zone'type FeaturedPartner = { slug: string; title: string; logo: string }@@ -264,14 +265,8 @@ export default function PartnersContent({ featuredPartners }: Props) {<SectionContainer className="grid gap-4 xl:grid-cols-3 xl:gap-12 items-start"><SectionHeading eyebrow="Integration points" title={pageData.integrationOptions.title} /><dl className="col-span-2 grid gap-2 lg:grid-cols-2 xl:grid-cols-3">- {pageData.integrationOptions.options.map((option) => (- <Link- key={option.title}- href={option.href}- className="group block"- target="_blank"- rel="noopener noreferrer"- >+ {pageData.integrationOptions.options.map((option) => {+ const panelContent = (<PanelouterClassName="h-full"innerClassName="flex items-start gap-4 p-4 h-full"@@ -294,8 +289,29 @@ export default function PartnersContent({ featuredPartners }: Props) {</span></div></Panel>- </Link>- ))}+ )+ return isCrossZoneHref(option.href) ? (+ <a+ key={option.title}+ href={option.href}+ className="group block"+ target="_blank"+ rel="noopener noreferrer"+ >+ {panelContent}+ </a>+ ) : (+ <Link+ key={option.title}+ href={option.href}+ className="group block"+ target="_blank"+ rel="noopener noreferrer"+ >+ {panelContent}+ </Link>+ )+ })}</dl></SectionContainer></div>diff --git a/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx b/apps/www/app/state-of-startups/StateOfStartups2026Content.tsxindex d2ce5b7adbd..892f97c71b3 100644--- a/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx+++ b/apps/www/app/state-of-startups/StateOfStartups2026Content.tsx@@ -301,7 +301,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {</div><div className="flex items-center justify-center gap-2 mt-4"><Button variant="primary" asChild size="medium">- <Link+ <ahref="https://supabase.com/dashboard"onClick={() =>sendTelemetryEvent({@@ -311,7 +311,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {}>Start your project- </Link>+ </a></Button><Button asChild size="medium"><Linkdiff --git a/apps/www/app/state-of-startups/components/SectionCallout.tsx b/apps/www/app/state-of-startups/components/SectionCallout.tsxindex 789b60d00e1..987856b88b0 100644--- a/apps/www/app/state-of-startups/components/SectionCallout.tsx+++ b/apps/www/app/state-of-startups/components/SectionCallout.tsx@@ -1,6 +1,8 @@import { ArrowUpRight } from 'lucide-react'import Link from 'next/link'+import { isCrossZoneHref } from '@/lib/cross-zone'+export interface SectionCalloutData {eyebrow: stringbody: string@@ -15,15 +17,27 @@ export function SectionCallout({ eyebrow, body, href, cta, external }: SectionCa<div className="bg-surface-100/60 border border-muted rounded-lg p-6 flex flex-col gap-3"><span className="text-primary text-xs font-mono uppercase tracking-widest">{eyebrow}</span><p className="text-foreground-light text-balance">{body}</p>- <Link- href={href}- target={external ? '_blank' : undefined}- rel={external ? 'noopener noreferrer' : undefined}- className="inline-flex items-center gap-1 text-primary text-sm font-medium hover:underline w-fit"- >- {cta}- <ArrowUpRight size={14} strokeWidth={2} />- </Link>+ {isCrossZoneHref(href) ? (+ <a+ href={href}+ target={external ? '_blank' : undefined}+ rel={external ? 'noopener noreferrer' : undefined}+ className="inline-flex items-center gap-1 text-primary text-sm font-medium hover:underline w-fit"+ >+ {cta}+ <ArrowUpRight size={14} strokeWidth={2} />+ </a>+ ) : (+ <Link+ href={href}+ target={external ? '_blank' : undefined}+ rel={external ? 'noopener noreferrer' : undefined}+ className="inline-flex items-center gap-1 text-primary text-sm font-medium hover:underline w-fit"+ >+ {cta}+ <ArrowUpRight size={14} strokeWidth={2} />+ </Link>+ )}</div></div>)diff --git a/apps/www/components/BuiltWithSupabase/index.tsx b/apps/www/components/BuiltWithSupabase/index.tsxindex 768e7d484c3..ac5c3e93eb1 100644--- a/apps/www/components/BuiltWithSupabase/index.tsx+++ b/apps/www/components/BuiltWithSupabase/index.tsx@@ -17,7 +17,7 @@ const BuiltWithSupabase = () => {</p><div className="flex justify-center gap-2 py-4"><Button asChild size="small" className="h-full">- <Link href="/docs/guides/examples">View all examples</Link>+ <a href="/docs/guides/examples">View all examples</a></Button><ButtonasChilddiff --git a/apps/www/components/BuiltWithSupabaseSection.tsx b/apps/www/components/BuiltWithSupabaseSection.tsxindex f2e17f39311..5eeab2f1874 100644--- a/apps/www/components/BuiltWithSupabaseSection.tsx+++ b/apps/www/components/BuiltWithSupabaseSection.tsx@@ -107,12 +107,12 @@ export function BuiltWithSupabaseSection() {Kickstart your next project <br /><span className="text-foreground">with production ready templates</span></h3>- <Link+ <ahref="/docs/guides/examples"className="text-sm text-foreground-light hover:text-foreground underline">View all examples- </Link>+ </a></div></div>diff --git a/apps/www/components/CTABanner/index.tsx b/apps/www/components/CTABanner/index.tsxindex 5434aa39f1b..c9e205b8f81 100644--- a/apps/www/components/CTABanner/index.tsx+++ b/apps/www/components/CTABanner/index.tsx@@ -31,7 +31,7 @@ const CTABanner = ({ darkerBg, className }: Props) => {</div><div className="flex items-center justify-center gap-2 col-span-12 mt-4"><Button variant="primary" asChild size="medium">- <Link+ <ahref={getDashboardCtaHref(isLoggedIn)}onClick={() =>sendTelemetryEvent({@@ -41,7 +41,7 @@ const CTABanner = ({ darkerBg, className }: Props) => {}>Start your project- </Link>+ </a></Button><Button asChild size="medium"><Linkdiff --git a/apps/www/components/CTASection.tsx b/apps/www/components/CTASection.tsxindex 1423c100f41..f6850df860c 100644--- a/apps/www/components/CTASection.tsx+++ b/apps/www/components/CTASection.tsx@@ -20,7 +20,7 @@ export function CTASection() {</h2><div className="flex items-center gap-2"><Button variant="primary" asChild size="medium">- <Link+ <ahref={getDashboardCtaHref(isLoggedIn)}onClick={() =>sendTelemetryEvent({@@ -30,7 +30,7 @@ export function CTASection() {}>Start your project- </Link>+ </a></Button><Button asChild size="medium"><Linkdiff --git a/apps/www/components/Footer/index.tsx b/apps/www/components/Footer/index.tsxindex f8a8dfc11cd..073b7f996b0 100644--- a/apps/www/components/Footer/index.tsx+++ b/apps/www/components/Footer/index.tsx@@ -24,6 +24,7 @@ import { ThemeToggle } from 'ui-patterns/ThemeToggle'import useDarkLaunchWeeks from '../../hooks/useDarkLaunchWeeks'import SectionContainer from '../Layouts/SectionContainer'+import { isCrossZoneHref } from '@/lib/cross-zone'interface Props {className?: string@@ -231,7 +232,7 @@ const Footer = (props: Props) => {return (<li key={`${segment.title}_link_${idx}`}>{link.url ? (- link.url.startsWith('https') ? (+ link.url.startsWith('https') || isCrossZoneHref(link.url) ? (<a href={link.url}>{children}</a>) : (<Link href={link.url}>{children}</Link>diff --git a/apps/www/components/Go/TweetsSection.tsx b/apps/www/components/Go/TweetsSection.tsxindex a4cef715cc5..a1779a25578 100644--- a/apps/www/components/Go/TweetsSection.tsx+++ b/apps/www/components/Go/TweetsSection.tsx@@ -8,6 +8,8 @@ import { topTweets } from 'shared-data/tweets'import { Button, cn } from 'ui'import { TweetCard } from 'ui-patterns/TweetCard'+import { isCrossZoneHref } from '@/lib/cross-zone'+function MobileCarousel() {return (<div@@ -93,7 +95,11 @@ export default function TweetsSection({ section }: { section: GoTweetsSection })variant={cta.variant === 'secondary' ? 'default' : 'primary'}size="small">- <Link href={cta.href}>{cta.label}</Link>+ {isCrossZoneHref(cta.href) ? (+ <a href={cta.href}>{cta.label}</a>+ ) : (+ <Link href={cta.href}>{cta.label}</Link>+ )}</Button>))}</div>diff --git a/apps/www/components/Nav/DevelopersDropdown.tsx b/apps/www/components/Nav/DevelopersDropdown.tsxindex 2e252c85cbe..3a012d3c386 100644--- a/apps/www/components/Nav/DevelopersDropdown.tsx+++ b/apps/www/components/Nav/DevelopersDropdown.tsx@@ -3,6 +3,8 @@ import { data as DevelopersData } from 'data/Developers'import { ChevronRight } from 'lucide-react'import Link from 'next/link'+import { isCrossZoneHref } from '@/lib/cross-zone'+type LinkProps = {text: stringdescription?: string@@ -23,12 +25,9 @@ export const DevelopersDropdown = () => {{column.label}</label><ul className="flex flex-col gap-4">- {column.links.map(({ icon: Icon, ...link }: LinkProps) => (- <li key={link.text}>- <Link- href={link.url!}- className="flex group items-center gap-2 text-foreground-light text-sm hover:text-foreground focus-visible:text-foreground focus-ring rounded-sm"- >+ {column.links.map(({ icon: Icon, ...link }: LinkProps) => {+ const label = (+ <>{Icon && <Icon size={16} strokeWidth={1.3} />}<span>{link.text}</span>{link.text === 'Careers' && jobsCount > 0 && (@@ -40,9 +39,28 @@ export const DevelopersDropdown = () => {strokeWidth={2}className="w-3 -ml-1 transition-all will-change-transform -translate-x-1 opacity-0 group-hover:translate-x-0 group-hover:opacity-100"/>- </Link>- </li>- ))}+ </>+ )+ return (+ <li key={link.text}>+ {isCrossZoneHref(link.url!) ? (+ <a+ href={link.url!}+ className="flex group items-center gap-2 text-foreground-light text-sm hover:text-foreground focus-visible:text-foreground focus-ring rounded-sm"+ >+ {label}+ </a>+ ) : (+ <Link+ href={link.url!}+ className="flex group items-center gap-2 text-foreground-light text-sm hover:text-foreground focus-visible:text-foreground focus-ring rounded-sm"+ >+ {label}+ </Link>+ )}+ </li>+ )+ })}</ul></div>))}diff --git a/apps/www/components/Nav/MenuItem.tsx b/apps/www/components/Nav/MenuItem.tsxindex 0532f7f60d8..a1dacd8acd0 100644--- a/apps/www/components/Nav/MenuItem.tsx+++ b/apps/www/components/Nav/MenuItem.tsx@@ -3,6 +3,8 @@ import Link from 'next/link'import React from 'react'import { Badge, cn } from 'ui'+import { isCrossZoneHref } from '@/lib/cross-zone'+const MenuItem = React.forwardRef<React.ElementRef<'a'>,React.ComponentPropsWithoutRef<'a'> & {@@ -31,64 +33,65 @@ const MenuItem = React.forwardRef<},ref) => {- return (- <Link- href={href}- ref={ref}- className={cn(- 'group/menu-item flex items-center text-foreground-light text-sm hover:text-foreground select-none gap-3 rounded-md p-2 leading-none no-underline focus-ring focus-visible:text-foreground',- description && 'items-center',- className+ const content = children ?? (+ <>+ {icon && (+ <div className="shrink-0 border bg-surface-200 min-w-10 w-10 h-10 flex items-center justify-center rounded-lg">+ <svg+ className="h-5 w-5 group-hover/menu-item:text-foreground group-focus-visible/menu-item:text-foreground"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ aria-hidden="true"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ d={icon}+ stroke="currentColor"+ />+ </svg>+ </div>)}- {...props}- >- {children ?? (- <>- {icon && (- <div className="shrink-0 border bg-surface-200 min-w-10 w-10 h-10 flex items-center justify-center rounded-lg">- <svg- className="h-5 w-5 group-hover/menu-item:text-foreground group-focus-visible/menu-item:text-foreground"- xmlns="http://www.w3.org/2000/svg"- fill="none"- viewBox="0 0 24 24"- aria-hidden="true"- >- <path- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- d={icon}- stroke="currentColor"- />- </svg>- </div>- )}- <div className="flex flex-col justify-center">- <div className="flex items-center gap-1">- <p- className={cn(- 'leading-snug text-foreground',- hoverColor === 'brand' && 'group-hover/menu-item:text-primary'- )}- >- {title}- </p>- {badge && <Badge variant={badge.variant}>{badge.label}</Badge>}- {hasChevron && (- <ChevronRight- strokeWidth={2}- className="w-3 h-3 text-foreground transition-all will-change-transform -translate-x-1 opacity-0 group-hover/menu-item:translate-x-0 group-hover/menu-item:opacity-100"- />- )}- </div>- {description && (- <p className="line-clamp-2 leading-snug text-foreground-lighter group-hover/menu-item:text-foreground-light group-focus-visible/menu-item:text-foreground-light text-xs">- {description}- </p>+ <div className="flex flex-col justify-center">+ <div className="flex items-center gap-1">+ <p+ className={cn(+ 'leading-snug text-foreground',+ hoverColor === 'brand' && 'group-hover/menu-item:text-primary')}- </div>- </>- )}+ >+ {title}+ </p>+ {badge && <Badge variant={badge.variant}>{badge.label}</Badge>}+ {hasChevron && (+ <ChevronRight+ strokeWidth={2}+ className="w-3 h-3 text-foreground transition-all will-change-transform -translate-x-1 opacity-0 group-hover/menu-item:translate-x-0 group-hover/menu-item:opacity-100"+ />+ )}+ </div>+ {description && (+ <p className="line-clamp-2 leading-snug text-foreground-lighter group-hover/menu-item:text-foreground-light group-focus-visible/menu-item:text-foreground-light text-xs">+ {description}+ </p>+ )}+ </div>+ </>+ )+ const linkClassName = cn(+ 'group/menu-item flex items-center text-foreground-light text-sm hover:text-foreground select-none gap-3 rounded-md p-2 leading-none no-underline focus-ring focus-visible:text-foreground',+ description && 'items-center',+ className+ )+ return isCrossZoneHref(href) ? (+ <a href={href} ref={ref} className={linkClassName} {...props}>+ {content}+ </a>+ ) : (+ <Link href={href} ref={ref} className={linkClassName} {...props}>+ {content}</Link>)}diff --git a/apps/www/components/Nav/MobileMenu.tsx b/apps/www/components/Nav/MobileMenu.tsxindex 2c3cc44eae4..1898ac58d1b 100644--- a/apps/www/components/Nav/MobileMenu.tsx+++ b/apps/www/components/Nav/MobileMenu.tsx@@ -15,6 +15,7 @@ import SupabaseWordmark from './SupabaseWordmark'import staticContent from '@/.generated/staticContent/_index.json'import ProductModulesData from '@/data/ProductModules'import { DEFAULT_EASE } from '@/lib/animations'+import { isCrossZoneHref } from '@/lib/cross-zone'import { useSendTelemetryEvent } from '@/lib/telemetry'interface Props {@@ -195,6 +196,14 @@ export const MobileMenu = ({ open, setOpen, menu }: Props) => {<AccordionTrigger className={className}>{menuItem.title}</AccordionTrigger><AccordionMenuItem menuItem={menuItem} /></AccordionItem>+ ) : isCrossZoneHref(menuItem.url ?? '/') ? (+ <a+ href={menuItem.url ?? '/'}+ className={cn(className, 'block focus-ring rounded-sm')}+ onClick={() => setOpen(false)}+ >+ {menuItem.title}+ </a>) : (<Linkhref={menuItem.url ?? '/'}@@ -260,49 +269,43 @@ export const MobileMenu = ({ open, setOpen, menu }: Props) => {{!isUserLoading && (<>{isLoggedIn ? (- <Link href="/dashboard/projects" passHref legacyBehavior>+ <Button block asChild>+ <a type={undefined} className="h-10 py-4" href="/dashboard/projects">+ Dashboard+ </a>+ </Button>+ ) : (+ <><Button block asChild>- <a type={undefined} className="h-10 py-4">- Dashboard+ <a+ type={undefined}+ className="h-10 py-4"+ href="https://supabase.com/dashboard"+ onClick={() =>+ sendTelemetryEvent({+ action: 'sign_in_button_clicked',+ properties: { buttonLocation: 'Mobile Nav' },+ })+ }+ >+ Sign in+ </a>+ </Button>+ <Button variant="primary" block asChild>+ <a+ type={undefined}+ className="h-10 py-4"+ href="https://supabase.com/dashboard/sign-up"+ onClick={() =>+ sendTelemetryEvent({+ action: 'start_project_button_clicked',+ properties: { buttonLocation: 'Mobile Nav' },+ })+ }+ >+ Start your project</a></Button>- </Link>- ) : (- <>- <Link- href="https://supabase.com/dashboard"- passHref- legacyBehavior- onClick={() =>- sendTelemetryEvent({- action: 'sign_in_button_clicked',- properties: { buttonLocation: 'Mobile Nav' },- })- }- >- <Button block asChild>- <a type={undefined} className="h-10 py-4">- Sign in- </a>- </Button>- </Link>- <Link- href="https://supabase.com/dashboard/sign-up"- passHref- legacyBehavior- onClick={() =>- sendTelemetryEvent({- action: 'start_project_button_clicked',- properties: { buttonLocation: 'Mobile Nav' },- })- }- >- <Button variant="primary" block asChild>- <a type={undefined} className="h-10 py-4">- Start your project- </a>- </Button>- </Link></>)}</>diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex 5c72689f343..8b08d18c78d 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -5,7 +5,6 @@ import ScrollProgress from 'components/ScrollProgress'import { getMenu } from 'data/nav'import { DevToolbarTrigger } from 'dev-tools'import { useSendTelemetryEvent } from 'lib/telemetry'-import Link from 'next/link'import { usePathname } from 'next/navigation'import React, { useState } from 'react'import { useWindowSize } from 'react-use'@@ -217,14 +216,14 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {{isLoggedIn ? (<><Button className="hidden lg:inline-flex" asChild>- <Link href="/dashboard/projects">Dashboard</Link>+ <a href="/dashboard/projects">Dashboard</a></Button><AuthenticatedDropdownMenu menu={userMenu} user={user} site="www" /></>) : (<><Button className="hidden lg:inline-flex" asChild>- <Link+ <ahref="https://supabase.com/dashboard"onClick={() =>sendTelemetryEvent({@@ -234,10 +233,10 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {}>Sign in- </Link>+ </a></Button><Button variant="primary" className="hidden lg:inline-flex" asChild>- <Link+ <ahref="https://supabase.com/dashboard/sign-up"onClick={() =>sendTelemetryEvent({@@ -247,7 +246,7 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {}>Start your project- </Link>+ </a></Button></>)}diff --git a/apps/www/components/Pricing/ComputePricingTable.tsx b/apps/www/components/Pricing/ComputePricingTable.tsxindex d99d608734d..342ab640be2 100644--- a/apps/www/components/Pricing/ComputePricingTable.tsx+++ b/apps/www/components/Pricing/ComputePricingTable.tsx@@ -3,6 +3,8 @@ import Link from 'next/link'import { Fragment, useMemo } from 'react'import { cn } from 'ui'+import { isCrossZoneHref } from '@/lib/cross-zone'+const ComputePricingTable = () => {const columnNames = useMemo(() =>@@ -49,13 +51,23 @@ const ComputePricingTable = () => {translate={column.key === 'pricing' ? 'no' : undefined}>{column.url ? (- <Link- href={column.url}- className="underline text-primary hover:text-brand-600"- target="_blank"- >- {column.value}- </Link>+ isCrossZoneHref(column.url) ? (+ <a+ href={column.url}+ className="underline text-primary hover:text-brand-600"+ target="_blank"+ >+ {column.value}+ </a>+ ) : (+ <Link+ href={column.url}+ className="underline text-primary hover:text-brand-600"+ target="_blank"+ >+ {column.value}+ </Link>+ )) : (column.value)}diff --git a/apps/www/components/Pricing/PricingAddons.tsx b/apps/www/components/Pricing/PricingAddons.tsxindex e95472af019..01e5b2f28bb 100644--- a/apps/www/components/Pricing/PricingAddons.tsx+++ b/apps/www/components/Pricing/PricingAddons.tsx@@ -8,6 +8,7 @@ import { FC } from 'react'import { Button, cn } from 'ui'import CostControlAnimation from './CostControlAnimation'+import { isCrossZoneHref } from '@/lib/cross-zone'const addons = [{@@ -97,9 +98,15 @@ const AddonCard = ({ addon }: any) => {</div><div className="flex items-center gap-4 mt-4"><Button asChild size="tiny" iconRight={<ArrowUpRight className="w-4 h-4" />}>- <Link href={addon.ctaLink} target={addon.ctaTarget}>- {addon.ctaText}- </Link>+ {isCrossZoneHref(addon.ctaLink) ? (+ <a href={addon.ctaLink} target={addon.ctaTarget}>+ {addon.ctaText}+ </a>+ ) : (+ <Link href={addon.ctaLink} target={addon.ctaTarget}>+ {addon.ctaText}+ </Link>+ )}</Button></div></div>@@ -152,6 +159,10 @@ const AddonCard = ({ addon }: any) => {<div className={containerClasses}><HighlightCard /></div>+ ) : isCrossZoneHref(addon.ctaLink) ? (+ <a href={addon.ctaLink} className={containerClasses} target={addon.ctaTarget}>+ <SmallCard />+ </a>) : (<Link href={addon.ctaLink} className={containerClasses} target={addon.ctaTarget}><SmallCard />diff --git a/apps/www/components/Pricing/PricingComparisonTable.tsx b/apps/www/components/Pricing/PricingComparisonTable.tsxindex b8b42e4d436..ae0005aefef 100644--- a/apps/www/components/Pricing/PricingComparisonTable.tsx+++ b/apps/www/components/Pricing/PricingComparisonTable.tsx@@ -21,6 +21,7 @@ import {} from 'ui'import UpgradePlan from './UpgradePlan'+import { isCrossZoneHref } from '@/lib/cross-zone'const MobileHeader = ({description,@@ -46,6 +47,17 @@ const MobileHeader = ({const selectedPlan = plans.find((p) => p.name === plan)!const isUpgradablePlan = selectedPlan.name === 'Pro' || selectedPlan.name === 'Team'+ const trackPlanCtaClick = () =>+ sendTelemetryEvent({+ action: 'www_pricing_plan_cta_clicked',+ properties: {+ plan,+ showUpgradeText: false,+ section: 'comparison_table',+ tableMode: 'mobile',+ },+ ...(orgSlug && { groups: { organization: orgSlug } }),+ })return (<div className="mt-8 px-4 mobile-header">@@ -84,23 +96,15 @@ const MobileHeader = ({/>) : (<Button asChild size="medium" variant={plan === 'Enterprise' ? 'default' : 'primary'} block>- <Link- href={selectedPlan.href}- onClick={() =>- sendTelemetryEvent({- action: 'www_pricing_plan_cta_clicked',- properties: {- plan,- showUpgradeText: false,- section: 'comparison_table',- tableMode: 'mobile',- },- ...(orgSlug && { groups: { organization: orgSlug } }),- })- }- >- {selectedPlan.cta}- </Link>+ {isCrossZoneHref(selectedPlan.href) ? (+ <a href={selectedPlan.href} onClick={trackPlanCtaClick}>+ {selectedPlan.cta}+ </a>+ ) : (+ <Link href={selectedPlan.href} onClick={trackPlanCtaClick}>+ {selectedPlan.cta}+ </Link>+ )}</Button>)}</div>@@ -407,6 +411,17 @@ const PricingComparisonTable = ({{plans.map((plan) => {const isUpgradablePlan = plan.name === 'Pro' || plan.name === 'Team'+ const trackPlanCtaClick = () =>+ sendTelemetryEvent({+ action: 'www_pricing_plan_cta_clicked',+ properties: {+ plan: plan.name,+ showUpgradeText: false,+ section: 'comparison_table',+ tableMode: 'desktop',+ },+ ...(orgSlug && { groups: { organization: orgSlug } }),+ })return (<th@@ -463,23 +478,15 @@ const PricingComparisonTable = ({variant={plan.name === 'Enterprise' ? 'default' : 'primary'}block>- <Link- href={plan.href}- onClick={() =>- sendTelemetryEvent({- action: 'www_pricing_plan_cta_clicked',- properties: {- plan: plan.name,- showUpgradeText: false,- section: 'comparison_table',- tableMode: 'desktop',- },- ...(orgSlug && { groups: { organization: orgSlug } }),- })- }- >- {plan.cta}- </Link>+ {isCrossZoneHref(plan.href) ? (+ <a href={plan.href} onClick={trackPlanCtaClick}>+ {plan.cta}+ </a>+ ) : (+ <Link href={plan.href} onClick={trackPlanCtaClick}>+ {plan.cta}+ </Link>+ )}</Button>)}</span>diff --git a/apps/www/components/Pricing/PricingComputeSection.tsx b/apps/www/components/Pricing/PricingComputeSection.tsxindex 3dd252eff7e..93532b63bb4 100644--- a/apps/www/components/Pricing/PricingComputeSection.tsx+++ b/apps/www/components/Pricing/PricingComputeSection.tsx@@ -1,7 +1,6 @@'use client'import { ChevronDownIcon } from '@heroicons/react/outline'-import Link from 'next/link'import React, { useEffect, useRef, useState } from 'react'import { useWindowSize } from 'react-use'import { plans as allPlans } from 'shared-data/plans'@@ -129,9 +128,9 @@ const PricingComputeSection = () => {</div><Button asChild size="tiny">- <Link href="https://supabase.com/docs/guides/platform/compute-add-ons">+ <a href="https://supabase.com/docs/guides/platform/compute-add-ons">Learn about Compute add-ons- </Link>+ </a></Button></div><div@@ -161,21 +160,21 @@ const PricingComputeSection = () => {</p><p className="text-[13px] text-foreground-lighter">Read more on{' '}- <Link+ <ahref="https://supabase.com/docs/guides/platform/manage-your-usage/compute"target="_blank"className="transition text-primary hover:text-brand-600">usage-based billing for compute- </Link>{' '}+ </a>{' '}or{' '}- <Link+ <ahref="https://supabase.com/docs/guides/platform/compute-add-ons"target="_blank"className="transition text-primary hover:text-brand-600">Compute Add-ons- </Link>+ </a>.</p></div>diff --git a/apps/www/components/Pricing/PricingDiskSection.tsx b/apps/www/components/Pricing/PricingDiskSection.tsxindex 5c7873f03a1..341681f6dc6 100644--- a/apps/www/components/Pricing/PricingDiskSection.tsx+++ b/apps/www/components/Pricing/PricingDiskSection.tsx@@ -1,5 +1,4 @@import { ArrowUpRight } from 'lucide-react'-import Link from 'next/link'import { Button } from 'ui'import Panel from '../Panel'@@ -103,9 +102,9 @@ const PricingDiskSection = () => (</Panel><div className="mt-8 flex justify-center"><Button asChild size="tiny" iconRight={<ArrowUpRight className="w-4" />}>- <Link href="https://supabase.com/docs/guides/platform/compute-and-disk#disk">+ <a href="https://supabase.com/docs/guides/platform/compute-and-disk#disk">Learn about advanced disk config- </Link>+ </a></Button></div></div>diff --git a/apps/www/components/Pricing/PricingPlans.tsx b/apps/www/components/Pricing/PricingPlans.tsxindex a7380bb0742..4b9f0f923f2 100644--- a/apps/www/components/Pricing/PricingPlans.tsx+++ b/apps/www/components/Pricing/PricingPlans.tsx@@ -8,6 +8,7 @@ import { plans } from 'shared-data/plans'import { Button, cn } from 'ui'import UpgradePlan from './UpgradePlan'+import { isCrossZoneHref } from '@/lib/cross-zone'interface PricingPlansProps {organizations?: Organization[]@@ -86,9 +87,15 @@ const PricingPlans = ({ organizations, hasExistingOrganizations }: PricingPlansPvariant={plan.name === 'Enterprise' ? 'default' : 'primary'}asChild>- <Link href={plan.href} onClick={sendPricingEvent}>- {plan.cta}- </Link>+ {isCrossZoneHref(plan.href) ? (+ <a href={plan.href} onClick={sendPricingEvent}>+ {plan.cta}+ </a>+ ) : (+ <Link href={plan.href} onClick={sendPricingEvent}>+ {plan.cta}+ </Link>+ )}</Button>)}diff --git a/apps/www/components/Pricing/PricingTableRow.tsx b/apps/www/components/Pricing/PricingTableRow.tsxindex 87f7890ead1..b34abd998dc 100644--- a/apps/www/components/Pricing/PricingTableRow.tsx+++ b/apps/www/components/Pricing/PricingTableRow.tsx@@ -1,5 +1,4 @@import ProductIcon from 'components/ProductIcon'-import Link from 'next/link'import { Fragment, ReactNode } from 'react'import { FeatureKey } from 'shared-data/pricing'import { InfoTooltip } from 'ui-patterns/info-tooltip'@@ -104,9 +103,9 @@ export const pricingTooltips: PricingTooltips = {<span className="prose text-xs">AWS PrivateLink enables private connectivity between your AWS VPC and Supabase, keepingtraffic within the AWS network. Read more in our{' '}- <Link href="/docs/guides/platform/privatelink" target="_blank">+ <a href="/docs/guides/platform/privatelink" target="_blank">docs- </Link>+ </a>.</span>),@@ -117,9 +116,9 @@ export const pricingTooltips: PricingTooltips = {<span className="prose text-xs">Supabase provides granular access controls to manage permissions across your organizationsand projects. Read more in our{' '}- <Link href="/docs/guides/platform/access-control" target="_blank">+ <a href="/docs/guides/platform/access-control" target="_blank">docs- </Link>+ </a>.</span>),@@ -136,9 +135,9 @@ export const pricingTooltips: PricingTooltips = {automatically captured for all authentication events and help you monitor userauthentication activities, detect suspicious behavior, and maintain compliance with securityrequirements. Read more in our{' '}- <Link href="/docs/guides/auth/audit-logs" target="_blank">+ <a href="/docs/guides/auth/audit-logs" target="_blank">docs- </Link>+ </a>.</span>),@@ -150,9 +149,9 @@ export const pricingTooltips: PricingTooltips = {Any Platform API/Dashboard actions performed by organization members are loggedautomatically for auditing and security purposes. Includes actions such as creating a newproject, inviting members or changing project settings. Read more in our{' '}- <Link href="/docs/guides/security/platform-audit-logs" target="_blank">+ <a href="/docs/guides/security/platform-audit-logs" target="_blank">docs- </Link>+ </a>.</span>),@@ -164,9 +163,9 @@ export const pricingTooltips: PricingTooltips = {You are charged for the total volume of log data that Supabase ingests across all yourproject's services (Postgres, API gateway, Auth, Storage, Realtime, Edge Functions, andothers) during the billing cycle. Read more in our{' '}- <Link href="/docs/guides/platform/manage-your-usage/logs-ingest" target="_blank">+ <a href="/docs/guides/platform/manage-your-usage/logs-ingest" target="_blank">docs- </Link>+ </a>.</span>),@@ -179,9 +178,9 @@ export const pricingTooltips: PricingTooltips = {allowance that scales with how much log data you ingest. The allowance covers the volume oflog data scanned when you read logs through the Studio UI, the Management API, the CLI, orany other interface. Read more in our{' '}- <Link href="/docs/guides/platform/manage-your-usage/logs-query" target="_blank">+ <a href="/docs/guides/platform/manage-your-usage/logs-query" target="_blank">docs- </Link>+ </a>.</span>),diff --git a/apps/www/components/Products/Functions/RealtimeLogs.tsx b/apps/www/components/Products/Functions/RealtimeLogs.tsxindex 551dabd483f..66500433799 100644--- a/apps/www/components/Products/Functions/RealtimeLogs.tsx+++ b/apps/www/components/Products/Functions/RealtimeLogs.tsx@@ -4,7 +4,7 @@ import { FC, useEffect, useState } from 'react'import { useInterval } from 'react-use'import { Badge, cn } from 'ui'-interface Props {+export interface Props {isActive?: booleanisInView?: booleanclassName?: stringdiff --git a/apps/www/components/Products/ProductCard.tsx b/apps/www/components/Products/ProductCard.tsxindex a7481f73b13..7ee8e45966f 100644--- a/apps/www/components/Products/ProductCard.tsx+++ b/apps/www/components/Products/ProductCard.tsx@@ -6,6 +6,8 @@ import Link from 'next/link'import React, { useEffect, useState } from 'react'import { cn } from 'ui'+import { isCrossZoneHref } from '@/lib/cross-zone'+const ProductCard = ({className,title,@@ -36,15 +38,12 @@ const ProductCard = ({setHasShimmer(detectBrowser() !== 'Safari')}, [])- return (- <Link- href={url}- className={cn(- 'group relative w-full sm:h-[400px] flex flex-col gap-5 lg:flex-row focus-ring rounded-xl',- className- )}- onClick={onClick}- >+ const cardClassName = cn(+ 'group relative w-full sm:h-[400px] flex flex-col gap-5 lg:flex-row focus-ring rounded-xl',+ className+ )+ const cardContent = (+ <><PanelhasShimmer={hasShimmer}hasActiveOnHover@@ -102,6 +101,16 @@ const ProductCard = ({</div>{image && <span aria-hidden="true">{image}</span>}</Panel>+ </>+ )++ return isCrossZoneHref(url) ? (+ <a href={url} className={cardClassName} onClick={onClick}>+ {cardContent}+ </a>+ ) : (+ <Link href={url} className={cardClassName} onClick={onClick}>+ {cardContent}</Link>)}diff --git a/apps/www/components/Sections/GithubExamples.tsx b/apps/www/components/Sections/GithubExamples.tsxindex 58eaed6dabb..2dc11554f17 100644--- a/apps/www/components/Sections/GithubExamples.tsx+++ b/apps/www/components/Sections/GithubExamples.tsx@@ -27,7 +27,7 @@ function GithubExamples() {</p><div className="flex items-center justify-center gap-2 py-4"><Button asChild size="small" icon={<BookOpen size={12} />}>- <Link href="/docs/guides/resources/examples">View guides</Link>+ <a href="/docs/guides/resources/examples">View guides</a></Button><Button asChild size="small" icon={<Github size={12} />}><Linkdiff --git a/apps/www/components/Sections/ProductHeader.tsx b/apps/www/components/Sections/ProductHeader.tsxindex 9ccce0c8b6e..1b441b685dd 100644--- a/apps/www/components/Sections/ProductHeader.tsx+++ b/apps/www/components/Sections/ProductHeader.tsx@@ -54,7 +54,7 @@ const ProductHeader = (props: Types) => {</div><div className="flex flex-row md:flex-row md:items-center"><Button variant="primary" asChild size="medium">- <Link+ <ahref={getDashboardCtaHref(isLoggedIn)}onClick={() =>sendTelemetryEvent({@@ -64,7 +64,7 @@ const ProductHeader = (props: Types) => {}>Start a project- </Link>+ </a></Button>{props.documentation_url && (<Button asChild size="medium" icon={<BookOpen />}>diff --git a/apps/www/components/Sections/ProductHeader2.tsx b/apps/www/components/Sections/ProductHeader2.tsxindex b106d5b072f..1b3f56cf4f8 100644--- a/apps/www/components/Sections/ProductHeader2.tsx+++ b/apps/www/components/Sections/ProductHeader2.tsx@@ -8,6 +8,7 @@ import { Button, cn } from 'ui'import SectionContainerWithCn from '../Layouts/SectionContainerWithCn'import ProductIcon from '../ProductIcon'+import { isCrossZoneHref } from '@/lib/cross-zone'import { resolveDashboardCtaHref } from '@/lib/dashboard-links'// to do: move types to be global@@ -86,7 +87,11 @@ const ProductHeader = ({ footerPosition = 'left', ...props }: Props) => {onClick={cta.onClick}asChild>- <Link href={href}>{cta.label ?? 'Start for free'}</Link>+ {isCrossZoneHref(href) ? (+ <a href={href}>{cta.label ?? 'Start for free'}</a>+ ) : (+ <Link href={href}>{cta.label ?? 'Start for free'}</Link>+ )}</Button>)})}diff --git a/apps/www/components/StartYourProjectButton.tsx b/apps/www/components/StartYourProjectButton.tsxindex 4dc263ffd06..ad24b52f53f 100644--- a/apps/www/components/StartYourProjectButton.tsx+++ b/apps/www/components/StartYourProjectButton.tsx@@ -26,9 +26,9 @@ export function StartYourProjectButton({return (<Button asChild size={size} variant={variant} className={className}>- <Link href={getDashboardCtaHref(isLoggedIn)} onClick={onClick}>+ <a href={getDashboardCtaHref(isLoggedIn)} onClick={onClick}>{children}- </Link>+ </a></Button>)}diff --git a/apps/www/components/Wrapped/Pages/ProductAnnouncements.tsx b/apps/www/components/Wrapped/Pages/ProductAnnouncements.tsxindex 81ba3b4e0f8..e5f4907dde1 100644--- a/apps/www/components/Wrapped/Pages/ProductAnnouncements.tsx+++ b/apps/www/components/Wrapped/Pages/ProductAnnouncements.tsx@@ -2,6 +2,7 @@ import Link from 'next/link'import { cn } from 'ui'import { AnimatedGridBackground } from '../AnimatedGridBackground'+import { isCrossZoneHref } from '@/lib/cross-zone'type Announcement = {title: string@@ -356,17 +357,31 @@ function MonthSection({ month }: { month: Month }) {<ul className="px-6 lg:px-8 pb-4 space-y-2">{month.announcements.map((announcement) => (<li key={announcement.title}>- <Link- href={announcement.url}- target="_blank"- rel="noopener noreferrer"- className="group flex items-center gap-2 text-sm text-foreground-light hover:text-foreground transition-colors"- >- <span className="text-foreground-muted group-hover:text-foreground transition-colors">- →- </span>- {announcement.title}- </Link>+ {isCrossZoneHref(announcement.url) ? (+ <a+ href={announcement.url}+ target="_blank"+ rel="noopener noreferrer"+ className="group flex items-center gap-2 text-sm text-foreground-light hover:text-foreground transition-colors"+ >+ <span className="text-foreground-muted group-hover:text-foreground transition-colors">+ →+ </span>+ {announcement.title}+ </a>+ ) : (+ <Link+ href={announcement.url}+ target="_blank"+ rel="noopener noreferrer"+ className="group flex items-center gap-2 text-sm text-foreground-light hover:text-foreground transition-colors"+ >+ <span className="text-foreground-muted group-hover:text-foreground transition-colors">+ →+ </span>+ {announcement.title}+ </Link>+ )}</li>))}</ul>diff --git a/apps/www/data/products/functions/page.tsx b/apps/www/data/products/functions/page.tsxindex b01d2e4548b..73de99861c1 100644--- a/apps/www/data/products/functions/page.tsx+++ b/apps/www/data/products/functions/page.tsx@@ -236,12 +236,12 @@ export default (isMobile?: boolean) => ({paragraph: (<>Use the{' '}- <Link+ <ahref="https://supabase.com/docs/guides/functions/deploy#cicd-deployment"className="underline hover:text-foreground-light transition-colors">Supabase CLI with GitHub actions- </Link>{' '}+ </a>{' '}to preview and deploy your functions along with the rest of your application</>),@@ -264,12 +264,12 @@ export default (isMobile?: boolean) => ({paragraph: (<>Edge functions run globally or can be{' '}- <Link+ <ahref="https://supabase.com/docs/guides/functions/regional-invocation"className="underline hover:text-foreground-light transition-colors">pinned to your database's proximity- </Link>+ </a></>),},@@ -336,12 +336,12 @@ export default (isMobile?: boolean) => ({paragraph: (<>Edge Functions are designed to work seamlessly with{' '}- <Link+ <ahref="https://supabase.com/docs/guides/functions/auth"className="underline hover:text-foreground-light transition-colors">Supabase Auth- </Link>+ </a></>),panel: <WorksWithAuthPanel />,@@ -351,12 +351,12 @@ export default (isMobile?: boolean) => ({paragraph: (<>Edge Functions are designed to work seamlessly with{' '}- <Link+ <ahref="https://supabase.com/docs/guides/functions/storage-caching"className="underline hover:text-foreground-light transition-colors">Supabase Storage- </Link>+ </a></>),panel: <WorksWithStoragePanel />,diff --git a/apps/www/eslint-rules/no-cross-zone-link.cjs b/apps/www/eslint-rules/no-cross-zone-link.cjsnew file mode 100644index 00000000000..36d8e877c0a--- /dev/null+++ b/apps/www/eslint-rules/no-cross-zone-link.cjs@@ -0,0 +1,83 @@+const { readFileSync } = require('node:fs')+const { join } = require('node:path')+const vm = require('node:vm')++const SUPABASE_ORIGIN = 'https://supabase.com'++// Evaluated as production: the /docs rewrite only exists there, and /docs links must be flagged in every environment.+function loadProductionRewrites() {+ const rewritesModule = { exports: [] }+ const source = readFileSync(join(__dirname, '../lib/rewrites.js'), 'utf8')+ vm.runInNewContext(source, {+ module: rewritesModule,+ process: { env: { NEXT_PUBLIC_VERCEL_ENV: 'production' } },+ })+ return rewritesModule.exports+}++const crossZonePrefixes = loadProductionRewrites()+ .filter(({ destination }) => !destination.startsWith('/'))+ .map(({ source }) => source.replace(/\/(:path\*)?$/, ''))++function parseHref(href) {+ try {+ return new URL(href, SUPABASE_ORIGIN)+ } catch {+ return null+ }+}++function isCrossZonePath(href) {+ const url = parseHref(href)+ if (url?.origin !== SUPABASE_ORIGIN) return false++ return crossZonePrefixes.some(+ (prefix) => url.pathname === prefix || url.pathname.startsWith(`${prefix}/`)+ )+}++function staticHrefPrefix(value) {+ if (!value) return null+ if (value.type === 'Literal') return typeof value.value === 'string' ? value.value : null+ if (value.type !== 'JSXExpressionContainer') return null++ const { expression } = value+ if (expression.type === 'Literal' && typeof expression.value === 'string') return expression.value+ if (expression.type === 'TemplateLiteral') return expression.quasis[0].value.cooked+ return null+}++/** @type {import('eslint').Rule.RuleModule} */+module.exports = {+ meta: {+ type: 'problem',+ messages: {+ crossZone:+ "'{{href}}' is served by another zone. Use a plain <a>: Next.js can't prefetch or client-navigate across zones, so <Link> 404s its prefetch.",+ },+ schema: [],+ },+ create(context) {+ const linkNames = new Set()++ return {+ ImportDeclaration(node) {+ if (node.source.value !== 'next/link') return+ for (const specifier of node.specifiers) {+ if (specifier.type === 'ImportDefaultSpecifier') linkNames.add(specifier.local.name)+ }+ },+ JSXOpeningElement(node) {+ if (node.name.type !== 'JSXIdentifier' || !linkNames.has(node.name.name)) return++ const hrefAttribute = node.attributes.find(+ (attribute) => attribute.type === 'JSXAttribute' && attribute.name.name === 'href'+ )+ const href = staticHrefPrefix(hrefAttribute?.value)+ if (!href || !isCrossZonePath(href)) return++ context.report({ node: hrefAttribute, messageId: 'crossZone', data: { href } })+ },+ }+ },+}diff --git a/apps/www/eslint-rules/no-cross-zone-link.test.ts b/apps/www/eslint-rules/no-cross-zone-link.test.tsnew file mode 100644index 00000000000..7b6e70c82cb--- /dev/null+++ b/apps/www/eslint-rules/no-cross-zone-link.test.ts@@ -0,0 +1,39 @@+import { RuleTester } from 'eslint'+import { describe, it } from 'vitest'++import noCrossZoneLink from './no-cross-zone-link.cjs'++RuleTester.describe = describe+RuleTester.it = it++const ruleTester = new RuleTester({+ languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } },+})++ruleTester.run('no-cross-zone-link', noCrossZoneLink, {+ valid: [+ 'import Link from \'next/link\'; <Link href="/pricing" />',+ 'import Link from \'next/link\'; <Link href="/dashboards" />',+ "import Link from 'next/link'; <Link href={href} />",+ '<a href="/dashboard/sign-up" />',+ 'import Link from \'somewhere-else\'; <Link href="/dashboard" />',+ ],+ invalid: [+ {+ code: 'import Link from \'next/link\'; <Link href="/dashboard/sign-up" />',+ errors: [{ messageId: 'crossZone' }],+ },+ {+ code: 'import Link from \'next/link\'; <Link href="https://supabase.com/docs/guides/auth" />',+ errors: [{ messageId: 'crossZone' }],+ },+ {+ code: "import Link from 'next/link'; <Link href={`/docs/guides/${slug}`} />",+ errors: [{ messageId: 'crossZone' }],+ },+ {+ code: 'import NextLink from \'next/link\'; <NextLink href="/humans.txt" />',+ errors: [{ messageId: 'crossZone' }],+ },+ ],+})diff --git a/apps/www/eslint.config.cjs b/apps/www/eslint.config.cjsindex 4f6ba19eb29..37ec0adc370 100644--- a/apps/www/eslint.config.cjs+++ b/apps/www/eslint.config.cjs@@ -1,6 +1,8 @@const { defineConfig } = require('eslint/config')const supabaseConfig = require('eslint-config-supabase/next')+const noCrossZoneLink = require('./eslint-rules/no-cross-zone-link.cjs')+module.exports = defineConfig([supabaseConfig,{@@ -19,4 +21,9 @@ module.exports = defineConfig(['react/no-children-prop': 'warn',},},+ {+ files: ['**/*.{jsx,tsx}'],+ plugins: { www: { rules: { 'no-cross-zone-link': noCrossZoneLink } } },+ rules: { 'www/no-cross-zone-link': 'error' },+ },])diff --git a/apps/www/lib/cross-zone.test.ts b/apps/www/lib/cross-zone.test.tsnew file mode 100644index 00000000000..9dcd13dfa31--- /dev/null+++ b/apps/www/lib/cross-zone.test.ts@@ -0,0 +1,53 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'++async function loadIsCrossZoneHref(vercelEnv: string) {+ vi.stubEnv('NEXT_PUBLIC_VERCEL_ENV', vercelEnv)+ vi.resetModules()+ const { isCrossZoneHref } = await import('./cross-zone')+ return isCrossZoneHref+}++afterEach(() => {+ vi.unstubAllEnvs()+})++describe('isCrossZoneHref in production', () => {+ let isCrossZoneHref: (href: string) => boolean++ beforeEach(async () => {+ isCrossZoneHref = await loadIsCrossZoneHref('production')+ })++ it.each([+ '/docs/guides/auth#setup',+ '/dashboard',+ '/dashboard/project/_?sidebar=ai-assistant',+ 'https://supabase.com/dashboard/sign-up',+ '/humans.txt',+ ])('%s is served by another zone', (href) => {+ expect(isCrossZoneHref(href)).toBe(true)+ })++ it.each([+ '/pricing',+ '/dashboards',+ '/.well-known/ai-catalog.json',+ 'https://github.com/supabase/supabase',+ 'https://supabase.com.example.com/dashboard',+ ])('%s stays in the www zone or is external', (href) => {+ expect(isCrossZoneHref(href)).toBe(false)+ })++ it('treats an unparseable href as not cross-zone instead of throwing', () => {+ expect(isCrossZoneHref('https://')).toBe(false)+ })+})++describe('isCrossZoneHref outside production', () => {+ it('only treats /docs as another zone where the docs rewrite exists', async () => {+ const isCrossZoneHref = await loadIsCrossZoneHref('preview')++ expect(isCrossZoneHref('/docs')).toBe(false)+ expect(isCrossZoneHref('/dashboard')).toBe(true)+ })+})diff --git a/apps/www/lib/cross-zone.ts b/apps/www/lib/cross-zone.tsnew file mode 100644index 00000000000..f419d2357c1--- /dev/null+++ b/apps/www/lib/cross-zone.ts@@ -0,0 +1,30 @@+import rewrites from './rewrites'++const SUPABASE_ORIGIN = 'https://supabase.com'+const PATH_WILDCARD = '/:path*'++const crossZoneSources: string[] = rewrites+ .filter(({ destination }) => !destination.startsWith('/'))+ .map(({ source }) => source)++function matchesSource(pathname: string, source: string) {+ if (!source.endsWith(PATH_WILDCARD)) return pathname === source++ const prefix = source.slice(0, -PATH_WILDCARD.length)+ return pathname === prefix || pathname.startsWith(`${prefix}/`)+}++function parseHref(href: string) {+ try {+ return new URL(href, SUPABASE_ORIGIN)+ } catch {+ return null+ }+}++export function isCrossZoneHref(href: string): boolean {+ const url = parseHref(href)+ if (url?.origin !== SUPABASE_ORIGIN) return false++ return crossZoneSources.some((source) => matchesSource(url.pathname, source))+}diff --git a/apps/www/pages/assistant.tsx b/apps/www/pages/assistant.tsxindex 84e2d876921..024e834e94b 100644--- a/apps/www/pages/assistant.tsx+++ b/apps/www/pages/assistant.tsx@@ -683,9 +683,9 @@ function Assistant() {<div className="min-h-12 flex items-center gap-x-2">{!isUserLoading && (<Button variant="primary" size="medium" asChild>- <Link href="/dashboard/project/_?sidebar=ai-assistant">+ <a href="/dashboard/project/_?sidebar=ai-assistant">{isLoggedIn ? 'Dashboard' : 'Start your project'}- </Link>+ </a></Button>)}<Button size="medium" asChild>diff --git a/apps/www/pages/brand-assets.tsx b/apps/www/pages/brand-assets.tsxindex e9dc514accb..b9f8c28c162 100644--- a/apps/www/pages/brand-assets.tsx+++ b/apps/www/pages/brand-assets.tsx@@ -6,7 +6,6 @@ import CTABanner from 'components/CTABanner/index'import { Download } from 'lucide-react'import { NextSeo } from 'next-seo'import Image from 'next/image'-import Link from 'next/link'import { useRouter } from 'next/router'import { Button } from 'ui'@@ -90,12 +89,12 @@ const Index = () => {<h3 className="h3">Supabase Integrations</h3><p className="text-foreground-lighter text-sm">When building a{' '}- <Link+ <aclassName="text-primary underline"href="/docs/guides/platform/oauth-apps/build-a-supabase-integration">Supabase Integration- </Link>+ </a>, use this "Connect Supabase" button to initiate the OAuth redirect.</p><p className="text-foreground-lighter text-sm">diff --git a/apps/www/pages/state-of-startups-2025.tsx b/apps/www/pages/state-of-startups-2025.tsxindex 5f2586b8d0b..1a34e53bee8 100644--- a/apps/www/pages/state-of-startups-2025.tsx+++ b/apps/www/pages/state-of-startups-2025.tsx@@ -310,7 +310,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {</div><div className="flex items-center justify-center gap-2 mt-4"><Button variant="primary" asChild size="medium">- <Link+ <ahref="https://supabase.com/dashboard"onClick={() =>sendTelemetryEvent({@@ -320,7 +320,7 @@ const CTABanner = forwardRef<HTMLElement>((props, ref) => {}>Start your project- </Link>+ </a></Button><Button asChild size="medium"><Linkdiff --git a/packages/common/telemetry.tsx b/packages/common/telemetry.tsxindex d11933ab7aa..298e5f26763 100644--- a/packages/common/telemetry.tsx+++ b/packages/common/telemetry.tsx@@ -419,6 +419,13 @@ export const PageTelemetry = ({type EventBody = components['schemas']['TelemetryEventBodyV2']+const KEEPALIVE_ACTIONS = new Set<TelemetryEvent['action']>([+ 'sign_in_submitted',+ 'sign_in_button_clicked',+ 'start_project_button_clicked',+ 'www_pricing_plan_cta_clicked',+])+export function sendTelemetryEvent(API_URL: string, event: TelemetryEvent, pathname?: string) {const consent = hasConsented()if (!consent) return@@ -439,14 +446,15 @@ export function sendTelemetryEvent(API_URL: string, event: TelemetryEvent, pathn}}- // keepalive lets the request survive the same-tick OAuth redirect after- // sign_in_submitted, but keepalive requests share a ~64KB in-flight quota- // page-wide, so it stays scoped to that event. Callers like useTrack+ // keepalive lets the request survive a navigation that starts right after+ // the event (the OAuth redirect after sign_in_submitted, a plain-link click+ // into the dashboard), but keepalive requests share a ~64KB in-flight quota+ // page-wide, so it stays scoped to those events. Callers like useTrack// fire-and-forget, so rejections are handled here rather than surfacing// as unhandled promise rejections.return post(`${ensurePlatformSuffix(API_URL)}/telemetry/event`, body, {headers: { Version: '2' },- keepalive: event.action === 'sign_in_submitted',+ keepalive: KEEPALIVE_ACTIONS.has(event.action),}).catch((error) => {console.error('Problem sending telemetry event:', error)})