mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #329] fix: improve deploy auth UX #481
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#481
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/329
Author: @southpolesteve
Created: 3/7/2026
Status: 🔄 Open
Base:
main← Head:codex/wrangler-auth-ux📝 Commits (2)
aee4122fix deploy auth UX0a88579docs: clarify deploy-time cloudflare plugin behavior📊 Changes
5 files changed (+561 additions, -62 deletions)
View changed files
📝
AGENTS.md(+4 -0)📝
README.md(+14 -15)📝
packages/vinext/src/cloudflare/tpr.ts(+62 -14)📝
packages/vinext/src/deploy.ts(+277 -33)📝
tests/deploy.test.ts(+204 -0)📄 Description
Fixes #312
Summary
vinext deploywrangler login, and fail early in CI with exact token/account guidanceCLOUDFLARE_ACCOUNT_IDfrom env or Wrangler config, including selected--envblocksorigin/mainbefore starting workBehavior By Scenario
vinext deploystays Cloudflare-specific; Nitro remains the multi-platform path.wrangleris missing,vinext deployinstalls it automatically.wrangler loginand then continues.CLOUDFLARE_API_TOKEN, vinext fails early with a message that points to Wrangler login docs for local use and Cloudflare token docs for CI use.CLOUDFLARE_API_TOKENbut no account ID, vinext fails early before build.CLOUDFLARE_ACCOUNT_ID, top-levelaccount_id, or env-specificaccount_idin the selected Wrangler env block.vite.config.*is missing@cloudflare/vite-plugin, vinext warns but still injects the plugin for the deploy build so the deploy can proceed.vinext initremains host-neutral; Cloudflare-specific behavior stays invinext deploy.Testing
npx vitest run tests/deploy.test.ts tests/init.test.tspnpm run typecheck🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.