-
-
-
-
- {meta?.title || 'Supabase Docs'}
-
- {meta?.subtitle && (
-
- {meta.subtitle}
-
- )}
-
-
- {content && }
- {children}
-
-
-
- {!hideToc && (
-
+
+
+
+
+
+
+ {meta?.title || 'Supabase Docs'}
+
+ {meta?.subtitle && (
+
+ {meta.subtitle}
+
+ )}
+
+
+ {content && }
+ {children}
+
+
-
-
+ {!hideToc && (
+
+ )}
+
+
)
}
diff --git a/apps/docs/features/docs/MdxBase.shared.tsx b/apps/docs/features/docs/MdxBase.shared.tsx
index 1a0b6131efb..93427d9e71d 100644
--- a/apps/docs/features/docs/MdxBase.shared.tsx
+++ b/apps/docs/features/docs/MdxBase.shared.tsx
@@ -13,34 +13,6 @@ import { CostWarning } from '~/components/AuthSmsProviderConfig/AuthSmsProviderC
import ButtonCard from '~/components/ButtonCard'
import { Extensions } from '~/components/Extensions'
import { JwtGenerator } from '~/components/JwtGenerator'
-import {
- AuthErrorCodesTable,
- AuthRateLimits,
- CreateClientSnippet,
- DatabaseSetup,
- GetSessionWarning,
- HuggingFaceDeployment,
- KotlinProjectSetup,
- MigrationWarnings,
- OAuthPkceFlow,
- ProjectSetup,
- QuickstartDbSetup,
- QuickstartIntro,
- SocialProviderSettingsSupabase,
- SocialProviderSetup,
- PostgresInstallation,
- PricingMfaPhone,
- PricingBranching,
- PricingEdgeFunctions,
- PricingMau,
- PricingMauSso,
- PricingMauThirdParty,
- PricingPitr,
- PricingRealtimeMessages,
- PricingRealtimeConnections,
- PricingStorageImageTransformations,
- PricingStorageSize,
-} from '~/components/MDX/partials'
import { NavData } from '~/components/NavData'
import { ProjectConfigVariables } from '~/components/ProjectConfigVariables'
import { RealtimeLimitsEstimator } from '~/components/RealtimeLimitsEstimator'
@@ -59,8 +31,6 @@ const components = {
AccordionItem,
Admonition,
// Admonition: (props: AdmonitionProps) =>
,
- AuthErrorCodesTable,
- AuthRateLimits,
AuthSmsProviderConfig,
AppleSecretGenerator,
AuthProviders,
@@ -70,50 +40,26 @@ const components = {
CodeSampleDummy,
CodeSampleWrapper,
CostWarning,
- CreateClientSnippet,
- DatabaseSetup,
Extensions,
- GetSessionWarning,
GlassPanel,
- HuggingFaceDeployment,
IconArrowDown: ArrowDown,
IconCheck: Check,
IconPanel,
IconX: X,
Image: (props: any) =>
,
JwtGenerator,
- KotlinProjectSetup,
Link,
- MigrationWarnings,
NavData,
- OAuthPkceFlow,
ProjectConfigVariables,
- ProjectSetup,
- QuickstartDbSetup,
- QuickstartIntro,
RealtimeLimitsEstimator,
RegionsList,
SharedData,
ShowUntil,
- SocialProviderSettingsSupabase,
- SocialProviderSetup,
- PostgresInstallation,
SqlToRest,
StepHikeCompact,
Tabs,
TabPanel,
InfoTooltip,
- PricingMfaPhone,
- PricingBranching,
- PricingEdgeFunctions,
- PricingMau,
- PricingMauSso,
- PricingMauThirdParty,
- PricingPitr,
- PricingRealtimeMessages,
- PricingRealtimeConnections,
- PricingStorageImageTransformations,
- PricingStorageSize,
h2: (props: any) => (
{props.children}
diff --git a/apps/docs/features/docs/Reference.mdx.client.tsx b/apps/docs/features/docs/Reference.mdx.client.tsx
deleted file mode 100644
index 66ff1c58c12..00000000000
--- a/apps/docs/features/docs/Reference.mdx.client.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-'use client'
-
-/**
- * The MDXProvider is necessary so that MDX partials will have access
- * to components.
- *
- * Since the reference pages are so heavy, keep the weight down by only
- * including the bare minimum.
- */
-
-import { MDXProvider } from '@mdx-js/react'
-import { type PropsWithChildren } from 'react'
-
-import { Admonition } from 'ui-patterns/admonition'
-
-const components = { Admonition }
-
-export function MDXProviderReference({ children }: PropsWithChildren) {
- return {children}
-}
diff --git a/apps/docs/features/docs/Reference.mdx.tsx b/apps/docs/features/docs/Reference.mdx.tsx
index eac8747683a..1024e5771ad 100644
--- a/apps/docs/features/docs/Reference.mdx.tsx
+++ b/apps/docs/features/docs/Reference.mdx.tsx
@@ -44,7 +44,7 @@ interface MDXRemoteRefsProps {
function MDXRemoteRefs({ source }: MDXRemoteRefsProps) {
const refComponents = { ...components, RefSubLayout, CliGlobalFlagsHandler }
- return x} />
+ return
}
export { getRefMarkdown, MDXRemoteRefs }
diff --git a/apps/docs/features/docs/Reference.sections.tsx b/apps/docs/features/docs/Reference.sections.tsx
index b68dd1a8938..c96179f5530 100644
--- a/apps/docs/features/docs/Reference.sections.tsx
+++ b/apps/docs/features/docs/Reference.sections.tsx
@@ -12,7 +12,6 @@ import {
import ApiSchema from '~/components/ApiSchema'
import { REFERENCES } from '~/content/navigation.references'
import { MDXRemoteRefs, getRefMarkdown } from '~/features/docs/Reference.mdx'
-import { MDXProviderReference } from '~/features/docs/Reference.mdx.client'
import type { MethodTypes } from '~/features/docs/Reference.typeSpec'
import {
getApiEndpointById,
@@ -48,18 +47,16 @@ async function RefSections({ libraryId, version }: RefSectionsProps) {
flattenedSections = trimIntro(flattenedSections)
return (
-
-
- {flattenedSections
- .filter((section) => section.type !== 'category')
- .map((section, idx) => (
-
-
-
-
- ))}
-
-
+
+ {flattenedSections
+ .filter((section) => section.type !== 'category')
+ .map((section, idx) => (
+
+
+
+
+ ))}
+
)
}
diff --git a/apps/docs/lib/docs.ts b/apps/docs/lib/docs.ts
index bfcaf3772a1..14005b222d0 100644
--- a/apps/docs/lib/docs.ts
+++ b/apps/docs/lib/docs.ts
@@ -17,6 +17,7 @@ import codeHikeTheme from 'config/code-hike.theme.json' with { type: 'json' }
export const DOCS_DIRECTORY = process.cwd()
export const EXAMPLES_DIRECTORY = join(DOCS_DIRECTORY, 'examples')
export const GUIDES_DIRECTORY = join(DOCS_DIRECTORY, 'content/guides')
+export const PARTIALS_DIRECTORY = join(DOCS_DIRECTORY, 'content/_partials')
export const REF_DOCS_DIRECTORY = join(DOCS_DIRECTORY, 'docs/ref')
export const SPEC_DIRECTORY = join(DOCS_DIRECTORY, 'spec')
diff --git a/apps/docs/turbo.json b/apps/docs/turbo.json
index 59bfa4d6391..84d28434830 100644
--- a/apps/docs/turbo.json
+++ b/apps/docs/turbo.json
@@ -27,6 +27,7 @@
"NEXT_PUBLIC_DEV_AUTH_PAGE",
"NEXT_PUBLIC_IS_PLATFORM",
"NEXT_PUBLIC_VERCEL_ENV",
+ "NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA",
// These envs are used in the packages
"NEXT_PUBLIC_STORAGE_KEY",
"NEXT_PUBLIC_AUTH_DEBUG_KEY",
diff --git a/supa-mdx-lint/Rule003Spelling.toml b/supa-mdx-lint/Rule003Spelling.toml
index 4e9d00102b1..b5e1c888acb 100644
--- a/supa-mdx-lint/Rule003Spelling.toml
+++ b/supa-mdx-lint/Rule003Spelling.toml
@@ -79,6 +79,7 @@ allow_list = [
"[Pp]sycopg",
"[Qq]uickstarts?",
"[Rr]ealtime",
+ "[Rr]eauthenticat(e|es|ed|ion)?",
"[Rr]ebas(e|ed|es|ing)",
"[Rr]eplayability",
"[Rr]epos?",
@@ -94,8 +95,10 @@ allow_list = [
"[Ss]ubfolders?",
"[Ss]ubmodules?",
"[Ss]wappiness",
+ "[Tt]imebox(ed)?",
"[Tt]odos?",
"[Tt]radeoffs?",
+ "[Uu]nlink(ing|s|ed)?",
"[Uu]pserts?",
"[Uu]ptime",
"[Ww]aitlists?",
@@ -105,6 +108,7 @@ allow_list = [
"AppleAuthentication",
"Astro",
"AsyncStorage",
+ "Authn",
"Authy",
"B-tree",
"Basejump",
@@ -260,6 +264,7 @@ allow_list = [
"Vonage",
"Vue",
"Wasm",
+ "WebAuthn",
"WebAssembly",
"WebP",
"WebSockets?",