feat(nextjs): point missing and invalid key errors at the Clerk CLI - #9492
Closed
djgould wants to merge 2 commits into
Closed
feat(nextjs): point missing and invalid key errors at the Clerk CLI#9492djgould wants to merge 2 commits into
djgould wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: 0cddd6d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Aug 18, 2026
Draft
djgould
force-pushed
the
dg/keyless-cli/2-prod-error
branch
from
August 18, 2026 18:29
5dba032 to
68162e8
Compare
djgould
force-pushed
the
dg/keyless-cli/3-invalid-keys
branch
from
August 18, 2026 18:29
0195511 to
3093159
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-google-signin
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
djgould
force-pushed
the
dg/keyless-cli/2-prod-error
branch
from
August 18, 2026 20:08
68162e8 to
13802d9
Compare
djgould
force-pushed
the
dg/keyless-cli/3-invalid-keys
branch
from
August 18, 2026 20:08
3093159 to
8a7793f
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
djgould
force-pushed
the
dg/keyless-cli/2-prod-error
branch
from
August 18, 2026 20:11
13802d9 to
b9156c6
Compare
djgould
force-pushed
the
dg/keyless-cli/3-invalid-keys
branch
from
August 18, 2026 20:11
8a7793f to
0cddd6d
Compare
djgould
force-pushed
the
dg/keyless-cli/2-prod-error
branch
from
August 18, 2026 20:40
b9156c6 to
91f6bf0
Compare
Author
|
Collapsed into the rest of the stack: the invalid-key fix moved to the actual throw site — the |
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.
Description
Part 2 of the keyless→CLI stack (#9491 → #9492 → #9493 → #9487 → #9488), stacked on #9491. Written against
main's middleware (keyless mode untouched — that lands in #9493):clerkMiddleware()with missing keys throwsmissingEnvVars(code=missing_env_keys):npx clerk@latest initfirst, withnpx clerk@latest deploy/npx clerk@latest env pull --instance prodguidance for production. The same message is thrown in every environment — the reader knows whether they are developing or deploying better thanNODE_ENVdoes (e.g.next build && next startlocally reportsproduction).clerkMiddleware()validates the publishable key format upfront, throwinginvalidEnvKeys(code=invalid_env_keys). Previously fabricated or mistyped keys surfaced later as a barePublishable key not valid.— sandbox agent trials showed invented placeholder keys are the most common agent failure mode.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code