Skip to content

docs: point the live previews at the mock server #594

Open

Description

@uniqueg

Why

Once the mock server runs on Rahti, every preview can show working data
instead of errors or "missing endpoint" notices.

What to do

  • Change the defaults in apps/documentation/utils/endpoints.ts to the
    mock server URL (Service Registry, Cloud Registry, TRS, TRS-Filer, WES)
    and sampleIds to fixture IDs; keep the NEXT_PUBLIC_* overrides.
  • Update the "Live previews" section of the Contributing page (defaults
    table, "what works with the defaults", how to point at a local mock
    with npm run dev).
  • Code samples on the component pages that show real public instances
    stay as they are; only the previews use the mock.

Done when

  • Every preview loads data from the mock on the built docs site
  • Cloud Registry, TRS-Filer and WES create forms submit successfully
  • Contributing page updated

Metadata

Metadata

Assignees

Labels

priority: lowstatus: blockedtype: docsworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions