Files
supabase/apps/docs/features/docs/Reference.constants.ts
Katerina Skroumpelou 6e83f71a56 docs: wire middleware sdk docs (#49854)
Wire middleware sdk docs (`@supabase/middleware`)
https://github.com/supabase/middleware

Preview ref here:
https://docs-git-docs-supabase-middleware-sdk-supabase.vercel.app/docs/reference/middleware/introduction

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
  * Added a Middleware SDK reference section to the documentation.
  * Added installation guidance for npm, Yarn, pnpm, Deno, and Bun.
* Documented framework-agnostic middleware composition, typed shared
context, ordering, trust, and environment access across supported
runtimes.
  * Added Middleware documentation to navigation and search.
  * Identified the Middleware SDK as an alpha release.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-02 14:06:23 +03:00

25 lines
936 B
TypeScript

/**
* Standalone constants for the reference pipeline.
*
* This file intentionally has no runtime dependencies — and in particular,
* it must NOT import anything that transitively pulls in `next/navigation`,
* `next/headers`, or any other client-only module. It is loaded by both UI
* code (e.g. `Reference.generated.singleton.ts` used in app routes) and
* server-only scripts run with `tsx --conditions=react-server`
* (e.g. `scripts/llms.ts`), where the server React build lacks
* `createContext` and Next.js client modules crash on import.
*/
/**
* SDK/version pairs (`${sdkId}-${version}`) that opt into the new reference
* content pipeline produced by `scripts/build-reference-content.ts`. Anything
* not listed here keeps reading from the legacy `features/docs/generated/`
* outputs.
*/
export const SUPPORTS_NEW_REFERENCE_PROCESS = new Set([
'javascript-v2',
'dart-v2',
'server-v1',
'middleware-v1',
])