• Will Chen's avatar
    Fix Vercel Live URL not updating after new deployments (#2283) · dc33f678
    Will Chen 提交于
    ## Summary
    - Updates the Vercel deployment URL when refreshing deployments to show
    the most recent READY production deployment
    - Previously, the Live URL was only set once during project creation or
    connection and never updated
    - Now when users click "Refresh Deployments", the Live URL will update
    to reflect the latest production deployment
    
    Fixes #2208
    
    ## Test plan
    - [ ] Connect an app to a Vercel project
    - [ ] Verify the Live URL is shown correctly
    - [ ] Push a new deployment to Vercel
    - [ ] Click "Refresh Deployments" in Dyad
    - [ ] Verify the Live URL updates to reflect the new deployment
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > Ensures the app’s Vercel Live URL stays current after refreshing
    deployments.
    > 
    > - In `vercel_handlers.ts`, when fetching deployments, finds the most
    recent `READY` production deployment and updates
    `apps.vercelDeploymentUrl` if it changed (with logging)
    > - In `VercelConnector.tsx`, after `getDeployments()` completes, calls
    `refreshApp()` so the updated Live URL is shown in the UI
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    2f2cccc87b91a3653b70d008b7f208a9aebd7af6. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    <!-- This is an auto-generated description by cubic. -->
    ---
    ## Summary by cubic
    Ensures the Vercel Live URL updates to the latest READY production
    deployment when users refresh deployments, fixing the stale URL issue.
    Fixes #2208.
    
    - **Bug Fixes**
    - Call refreshApp() after getDeployments in VercelConnector to refresh
    the Live URL.
    - In IPC handler, detect the most recent READY production deployment and
    update vercelDeploymentUrl in the DB only when it changes.
    
    <sup>Written for commit 2f2cccc87b91a3653b70d008b7f208a9aebd7af6.
    Summary will update on new commits.</sup>
    
    <!-- End of auto-generated description by cubic. -->
    
    ---------
    Co-authored-by: 's avatarClaude Opus 4.5 <noreply@anthropic.com>
    dc33f678
名称
最后提交
最后更新
.claude 正在载入提交数据...
.cursor/rules 正在载入提交数据...
.devcontainer 正在载入提交数据...
.github 正在载入提交数据...
.husky 正在载入提交数据...
assets 正在载入提交数据...
docs 正在载入提交数据...
drizzle 正在载入提交数据...
e2e-tests 正在载入提交数据...
makers 正在载入提交数据...
packages/@dyad-sh 正在载入提交数据...
scaffold 正在载入提交数据...
scripts 正在载入提交数据...
shared 正在载入提交数据...
src 正在载入提交数据...
testing 正在载入提交数据...
tools 正在载入提交数据...
worker 正在载入提交数据...
workers/tsc 正在载入提交数据...
.cursorignore 正在载入提交数据...
.env.example 正在载入提交数据...
.eslintrc.json 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.oxlintrc.json 正在载入提交数据...
.prettierignore 正在载入提交数据...
.prettierrc 正在载入提交数据...
AGENTS.md 正在载入提交数据...
CLA.md 正在载入提交数据...
CLAUDE.md 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
SECURITY.md 正在载入提交数据...
biome.json 正在载入提交数据...
components.json 正在载入提交数据...
drizzle.config.ts 正在载入提交数据...
forge.config.ts 正在载入提交数据...
forge.env.d.ts 正在载入提交数据...
index.html 正在载入提交数据...
lint-staged.config.js 正在载入提交数据...
merge.config.ts 正在载入提交数据...
package-lock.json 正在载入提交数据...
package.json 正在载入提交数据...
playwright.config.ts 正在载入提交数据...
tsconfig.app.json 正在载入提交数据...
tsconfig.json 正在载入提交数据...
tsconfig.node.json 正在载入提交数据...
vite.main.config.mts 正在载入提交数据...
vite.preload.config.mts 正在载入提交数据...
vite.renderer.config.mts 正在载入提交数据...
vite.worker.config.mts 正在载入提交数据...
vitest.config.ts 正在载入提交数据...