#362
deploy-to-vercel: --temporary fallback publishes to a public URL without asking (follow-up to #335)
At 1a2c79d (after #350), skills/deploy-to-vercel/SKILL.md tells the agent to publish the project without asking the user:
- Line 164 says: "Do not ask the user to approve a CLI login or device code first — try this."
- Line 167 is
npx vercel@latest deploy [path] --temporary -y. - Lines 170-171 say the CLI builds locally and deploys to a temporary production URL. The URL is publicly reachable until it expires.
- Line 230 makes
vercel deploy --temporary -ythe automatic response to anyvercel loginorvercel deployauthentication failure.
An agent that follows the skill will therefore upload a build of the user's project to a public URL whenever credentials are missing or rejected. It does this without telling the user what is about to be published. #335 reported the same "runs without asking" behaviour for the earlier deploy.sh fallback. #350 replaced the script, but it kept the behaviour and made the no-confirmation instruction explicit.
Suggested changes:
- Ask before the fallback. Tell the user which directory will be built and uploaded, that the result is a live public URL, and that it expires unless claimed. Continue only on a yes.
- Narrow line 164 so it covers the login prompt only. It should not cover the publish step.
- On line 230, offer the fallback rather than running it automatically.
- Pin the CLI version (
vercel@<version>) for a command that publishes, instead of@latest.
Proposed patch for this issue. It is the complete change and can be applied with
git apply.