Repository navigation
Conversation
Member
|
Superseded by #1723. The replacement retains this focused exact rewrite and adds current-checkout regression tests, real HTTP proxy coverage, and a running Next.js smoke check in both proxy modes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Route the canonical GitHub OAuth navigation endpoint through the existing dashboard API proxy in same-origin builds.
Motivation
In a self-hosted proxy deployment, the API implements this endpoint but the canonical dashboard-origin URL returns 404. Normal UI navigation already resolves relative URLs to the proxy; this change covers the canonical endpoint and does not claim every UI flow is broken.
Related issue
Closes #1685
Changes
NEXT_PUBLIC_API_PROXY=true.Verification
./node_modules/.bin/vitest run --config apps/dashboard/vitest.config.ts apps/dashboard/src/lib/github-oauth-route.test.ts apps/dashboard/src/lib/framing-protection.test.ts apps/dashboard/src/lib/api/urls.test.ts: 3 files, 18 tests passed, using isolated dependencies on Node 26.install_statequery and mock session cookie returned the mock 302 Location and both Set-Cookie headers;/api/authstill forwarded. This was not a test of the PR's current main SHA or a real GitHub authorization.next.config.mjs; it was left untouched.Merge danger
Two-way: the exact rewrite can be reverted independently. Scope: same-origin dashboard builds. No new API endpoint or new auth bypass is introduced; the target is the existing API proxy.
Checklist