Skip to content

feat: serve dashboard-api docs at /dashboard-api/#456

Merged
slowbackspace merged 1 commit into
masterfrom
add-dashboard-api-docs-rewrite
May 28, 2026
Merged

feat: serve dashboard-api docs at /dashboard-api/#456
slowbackspace merged 1 commit into
masterfrom
add-dashboard-api-docs-rewrite

Conversation

@slowbackspace
Copy link
Copy Markdown
Contributor

@slowbackspace slowbackspace commented May 27, 2026

Summary

  • Adds a Vercel rewrite routing docs.blockfrost.io/dashboard-api/* → the standalone Vercel project that hosts the Blockfrost Dashboard API documentation. The spec and Scalar build live separately and deploy independently; this PR makes the openapi project host the path under the shared docs.blockfrost.io domain.
  • Adds an explicit rewrite for the trailing-slash index /dashboard-api/, because Vercel's path matcher treats :path* as one-or-more in practice — without it, the bare index returns 404.
  • Adds a 308 redirect from the bare /dashboard-api/dashboard-api/, mirroring the existing /midnight pattern.
  • README: a short note under Development describing the architecture.

Why

Avoids copy-pasting the dashboard-api spec into this repo each release. Each service owns its spec and its Scalar build; this repo just owns the host.

Test plan

  • Preview: /dashboard-api/ renders Scalar docs after the index-path fix
  • After merge + deploy:
    • curl -I https://docs.blockfrost.io/dashboard-api/ → 200
    • curl -I https://docs.blockfrost.io/dashboard-api → 308 → /dashboard-api/
    • curl -I https://docs.blockfrost.io/dashboard-api/openapi.yaml → 200
  • Existing routes unaffected: /midnight/, / (main openapi docs)

Notes

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openapi Ready Ready Preview, Comment May 27, 2026 7:16pm

Request Review

Adds a `rewrites` rule routing `docs.blockfrost.io/dashboard-api/*` to a
standalone Vercel project hosting the Blockfrost Dashboard API
documentation, plus a 308 redirect from the bare `/dashboard-api` to the
trailing-slash form (mirroring the existing `/midnight` pattern). An
explicit rewrite for the trailing-slash index is included separately
because Vercel's path matcher treats `:path*` as one-or-more in practice,
so the bare `/dashboard-api/` would otherwise 404.

This repo only hosts the path under the shared `docs.blockfrost.io`
domain; the spec and Scalar build live in the separate project and
deploy independently. README updated under Development with a short note
on the architecture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@slowbackspace slowbackspace force-pushed the add-dashboard-api-docs-rewrite branch from abd6445 to fac4433 Compare May 27, 2026 19:15
@slowbackspace slowbackspace merged commit f520d3f into master May 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant