Files
supabase/apps/docs/features/docs/Reference.constants.ts
T
f20cd22dc3 docs: improve SDK automation build step on docs (#46163)
# Second try of making a new better process for SDK automation

Instead of building a new pipeline. We will take the lessons learned
form round 1, plus the good design and improvement on DX quality for
drop-in file as a single step required from SDK team and produce almost
identical set of files as used right now to render using the current
pipeline.



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

* **New Features**
* New reference-content pipeline producing per-library reference
artifacts and integrating into prebuilds, search ingestion, and
rendering (type-aware examples).

* **Documentation**
* Added comprehensive JavaScript SDK v2 reference content and partials
(Auth MFA, passkeys, admin, TypeScript support, filters, modifiers,
Installing, Initializing, Buckets, etc.).

* **Tests & CI**
* Added regression snapshot test and updated workflows to refresh
reference snapshots and ensure spec downloads.

* **Chores**
* Updated ignore rules, build scripts, Makefile targets, and package
lifecycle hooks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Katerina Skroumpelou <mandarini@users.noreply.github.com>
Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
2026-06-03 11:46:02 +03:00

20 lines
884 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'])