• 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
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
pro 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...