Skip to content

feat(desktop): add Vercel static site deployment (PR 0003) - #173

Closed
tokg-venv wants to merge 2 commits into
deer-flow:mainfrom
tokg-venv:pr/0003-vercel-deploy
Closed

tokg-venv wants to merge 2 commits into
deer-flow:mainfrom
tokg-venv:pr/0003-vercel-deploy

Conversation

@tokg-venv

Copy link
Copy Markdown
Contributor

Re-submission of #168, which GitHub auto-closed when its head fork was deleted during a fork-network repair on 2026-09-13. The head branch here is the exact commit SHA the original PR was reviewed at (recovered from GitHub's retained PR refs). Original description follows.


Summary

Implements spec 0003: one-click deployment of a workspace folder of static files to Vercel, driven from the desktop app.

Details

  • bun/vercel: VercelTokenStore persists the deploy token to settings/vercel.json inside the bun process (0600 perms, never exposed to the renderer); VercelClient wraps the REST API (create project, upload files, await deployment ready).
  • RPC contract (shared/rpc.ts) + handlers (bun/rpc): getVercelStatus, setVercelToken, removeVercelToken, deployToVercel, vercelPreflight.
  • Deploy dialog: token setup, folder validation via preflight (index.html presence, size limits), progress states, public-URL result with copy button; errors map to friendly renderer copy.
  • Entry points: command palette ("Deploy to Vercel"), page controller, file-tree context menu, account-page connection card.
  • i18n: en/zh strings for all new UI.

Test plan

  • bun test apps/desktop/src/bun/vercel/ — 18 unit tests for the Vercel client + token store pass.
  • bun run typecheck:changed / bun run lint:changed clean.

zcai7675-bot added 2 commits September 8, 2026 20:29
Add one-click deployment of a workspace folder of static files to Vercel:

- bun/vercel: VercelTokenStore persists the deploy token to
  settings/vercel.json inside the bun process (0600 perms, never exposed
  to the renderer); VercelClient wraps the REST API (create project,
  upload files, await deployment ready).
- RPC contract (shared/rpc.ts) + handlers (bun/rpc): getVercelStatus,
  setVercelToken, removeVercelToken, deployToVercel, vercelPreflight.
- Deploy dialog: token setup, folder validation via preflight (index.html
  presence, size limits), progress states, public URL result with
  copy button; errors map to friendly renderer copy.
- Entry points: command palette ("Deploy to Vercel"), page controller,
  file tree context menu, account page connection card.
- i18n: en/zh strings for all new UI.

Tests: 18 unit tests for vercel client + token store.
# Conflicts:
#	apps/desktop/src/bun/rpc/index.ts
#	apps/desktop/src/shared/rpc.ts
@tokg-venv

Copy link
Copy Markdown
Contributor Author

Closing at the author's request.

@tokg-venv tokg-venv closed this Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant