Repository navigation
chore(offlinedocs): upgrade the vercel cli to 65.11.0 - #334
Merged
Merged
Conversation
Vercel CLI 59.3.0 looks up the token's user and team before every command and fails with "Could not retrieve Project Settings" when the team lookup returns 403, which it does for a token scoped to one project, although the token can read the project. 65.11.0 skips that lookup. coder/coder's docs preview workflow already deploys with 65.11.0 and a project-scoped token. The preview workflows here install the CLI from this lockfile, so they need the newer version before their tokens can be narrowed to one project. 65.11.0 is the newest release more than a week old. Assisted-by: AI
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
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.
Merge order
Independent. #333 adds
router-pr-preview.yml, which installs the CLI from the same lockfile entry, so whichever lands second picks up 65.11.0 with no conflict.Summary
Upgrades the Vercel CLI in
apps/offlinedocsfrom 59.3.0 to 65.11.0, so the preview workflows can deploy with a Vercel token scoped to a single project.Fix
Vercel CLI 59.3.0 looks up the token's user (
GET /v2/user) and team (GET /teams/<id>) before every command. A token scoped to one project gets a 404 and a 403 on those, and the CLI then fails with "Could not retrieve Project Settings", even though the same token reads the project (GET /v9/projects/<id>returns 200). Run with--debugagainst a project-scoped token, 65.11.0 makes no team request andvercel pulldownloads the project's settings.This turned up while setting up coder/coder's docs previews (coder/coder#30698), whose deploy failed on exactly this and now passes with 65.11.0. Here,
docs-pr-preview.yml(androuter-pr-preview.ymlonce #333 lands) install the CLI from this lockfile, so their tokens can be narrowed to one project only once this is in. 65.11.0 is the newest release more than a week old; the workspace'sminimumReleaseAgeis three days.The lockfile change is the CLI's own dependency tree: the only importer specifier that changes is
vercelinapps/offlinedocs.QA
Nothing to see on the docs site. The CLI only runs in
docs-pr-preview.yml, which runs on demand rather than on push, so CI on this PR doesn't exercise it. To check a deploy, run docs-pr-preview from the Actions tab on this branch withcontent_refset to a coder/coder commit andpr_numberleft empty; the "Deploy the prebuilt output as a coder-docs preview" step should print a preview URL as it does today.Testing
pnpm install --frozen-lockfilepasses on the updated lockfile andpnpm --filter @coder/offlinedocs exec vercel --versionprints 65.11.0. The offline docs tests pass (75 of 75). The 59.3.0 failure and the 65.11.0 fix were reproduced locally against coder/coder's project-scoped preview token, and coder/coder#30698's deploy job passed with 65.11.0.Upstream
No: this is a dependency bump in our own app, unrelated to Fumadocs.
🤖 Built with AI assistance.