Repository navigation
Allow local ApplyOS hosts in Next.js dev - #2
Merged
Merged
Conversation
Clerk production keys only accept the applyos.me origin, and Next.js blocks dev assets from that host unless it is listed in allowedDevOrigins. Co-authored-by: Brian Moir <bmoir23@users.noreply.github.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates Next.js dev configuration to permit assets when the app is accessed through supported ApplyOS domains or local hosts, allowing Clerk sign-in to load during development. Flow diagram for allowed Next.js development originsflowchart LR
Browser[Browser on ApplyOS or local host] --> NextDev[Next.js development server]
NextDev --> OriginCheck{Origin allowed}
OriginCheck -->|applyos.me or dev.applyos.me| DevAssets[Serve development assets]
OriginCheck -->|127.0.0.1 or localhost| DevAssets
DevAssets --> Clerk[Clerk sign-in loads]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
bmoir23
marked this pull request as ready for review
October 4, 2026 02:36
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
applyos | b46243d | Oct 04 2026, 02:36 AM |
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. If the allowlist is wrong, a Next.js development server may accept requests or serve development assets to an unintended origin, potentially exposing local development data or enabling cross-origin access. Reverting restores the previous blocking behavior, but any information exposed while the setting was active cannot be recovered.
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
Next.js was blocking dev assets when the app was opened on
applyos.me, which is the only origin Clerk production keys accept.allowedDevOriginsnow includes that host along with localhost.Test plan
pnpm devand open the app on an allowed hostSummary by Sourcery
Bug Fixes: