Skip to content

fix: use redirect instead of rewrite for /openapi.json#469

Merged
brendanjryan merged 1 commit intomainfrom
fix/openapi-json-route
Mar 25, 2026
Merged

fix: use redirect instead of rewrite for /openapi.json#469
brendanjryan merged 1 commit intomainfrom
fix/openapi-json-route

Conversation

@brendanjryan
Copy link
Copy Markdown
Collaborator

The Vercel rewrite from #467 doesn't work because Vocs SSR catches /openapi.json and returns a 404 before the rewrite runs. Vercel redirects run before SSR, so switching to a 302 redirect reliably routes /openapi.json/api/openapi.json.

Vercel rewrites run after SSR, so the Vocs 404 handler catches
/openapi.json before the rewrite applies. Redirects run before
SSR and reliably route to the API endpoint.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

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

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview, Comment Mar 25, 2026 11:21pm

Request Review

@brendanjryan brendanjryan merged commit 0ded8c6 into main Mar 25, 2026
8 checks passed
@brendanjryan brendanjryan deleted the fix/openapi-json-route branch March 25, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant