Skip to content

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

chore(docs): remove prefetch on ref nav (#29481)

Charis679d49ca7dff
diff --git a/apps/docs/features/docs/Reference.navigation.client.tsx b/apps/docs/features/docs/Reference.navigation.client.tsx
index 11d926481b6..a9fd14775fd 100644
--- a/apps/docs/features/docs/Reference.navigation.client.tsx
+++ b/apps/docs/features/docs/Reference.navigation.client.tsx
@@ -177,6 +177,9 @@ export function RefLink({
) : (
<Link
ref={ref}
+ // We don't use these links because we never do real navigation, so
+ // prefetching just wastes bandwidth
+ prefetch={false}
href={href}
aria-current={isActive ? 'page' : false}
className={getLinkStyles(isActive, className)}
diff --git a/apps/docs/next-env.d.ts b/apps/docs/next-env.d.ts
index 4f11a03dc6c..40c3d68096c 100644
--- a/apps/docs/next-env.d.ts
+++ b/apps/docs/next-env.d.ts
@@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
+// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.