Skip to main content

apps/web/README.md

Metadata

  • Purpose: Source artifact in the anchor-msp system.
  • Domain: applications
  • Language: md
  • Bytes: 1521
  • Lines: 42
  • Content hash (short): 3a53c94a
  • Source (start): apps/web/README.md:1
  • Source (end): apps/web/README.md:42

Indexed Symbols

No indexed functions/methods detected in this file.

Markdown Headings (if applicable)

  • H1: Anchor Web (line 1)
  • H2: Run locally (line 33)

Source Preview

# Anchor Web

Next.js App Router frontend for MSP operator and client portal experiences.

The dashboard fetches live data from gateway endpoints using:

- `API_BASE_URL` / `NEXT_PUBLIC_API_BASE_URL`
- URL query `workspaceId=<uuid>` (preferred; auto-resolved if omitted)
- optional `ANCHOR_WORKSPACE_ID` for local dev convenience
- optional `ANCHOR_OPERATOR_JWT`
- optional `ANCHOR_REQUIRE_OPERATOR_JWT` (defaults to required in production)
- optional `ANCHOR_ALLOW_WILDCARD_WORKSPACE_IDS` (defaults to disallowed in production)

The admin control plane UI is available at `/admin/settings` and proxies to:

- web proxy routes under `/api/admin/*`
- gateway routes `GET/PUT /api/v1/platform/settings`
- gateway routes `GET/PUT /api/v1/workspace/settings`
- gateway routes `GET/POST /api/v1/platform/secrets/*`
- gateway routes `GET/POST /api/v1/workspace/secrets/*`

Workspace context:

- Runtime pages auto-resolve workspace from this order:
1. `workspaceId` query parameter