Skip to content

feat: allow tunnel URLs in next dev via NEXTAUTH_URL - #522

Merged
Miablo merged 2 commits into
github-community-projects:mainfrom
Miablo:chore/allowed-dev-origins
Nov 21, 2026
Merged

Miablo merged 2 commits into
github-community-projects:mainfrom
Miablo:chore/allowed-dev-origins

Conversation

@Miablo

@Miablo Miablo commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Pull Request

Next.js 16 blocks cross-origin requests to dev resources (including the HMR websocket) by default, so when next dev is reached through a tunnel the page never hydrates and the "Sign in with GitHub" button does nothing.

  • Sets allowedDevOrigins in next.config.mjs to the hostname of NEXTAUTH_URL, which is already the URL you browse from — no-op when unset or localhost, dev-only (ignored by production builds)
  • Adds a "Using a public URL (tunnel)" section to docs/developing.md: tunnel setup, NEXTAUTH_URL, GitHub App URLs (including the OAuth callback), and browsing via the tunnel rather than localhost to avoid the "State cookie was missing" sign-in error

Tested locally with Tailscale Funnel: sign-in, org/fork pages, and mirror create/edit/delete.

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run npm run format and fix any formatting issues that have been introduced
  • run npm run lint and fix any linting issues that have been introduced
  • run npm run test and run tests

@Miablo Miablo self-assigned this Nov 21, 2026
@Miablo
Miablo requested review from a team as code owners November 21, 2026 17:07
@Miablo
Miablo enabled auto-merge November 21, 2026 17:07
@Miablo Miablo changed the title Allow tunnel URLs in next dev via NEXTAUTH_URL feat: allow tunnel URLs in next dev via NEXTAUTH_URL Nov 21, 2026
@Miablo Miablo added the release label Nov 21, 2026
@Miablo
Miablo force-pushed the chore/allowed-dev-origins branch from d12288f to f4bcc1f Compare November 21, 2026 17:25
@Miablo
Miablo merged commit 9c1eda0 into github-community-projects:main Nov 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants