• 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
名称
最后提交
最后更新
..
app_env_vars_handlers.ts 正在载入提交数据...
app_handlers.ts 正在载入提交数据...
app_upgrade_handlers.ts 正在载入提交数据...
capacitor_handlers.ts 正在载入提交数据...
chat_handlers.ts 正在载入提交数据...
chat_stream_handlers.ts 正在载入提交数据...
context_paths_handlers.ts 正在载入提交数据...
createFromTemplate.ts 正在载入提交数据...
debug_handlers.ts 正在载入提交数据...
dependency_handlers.ts 正在载入提交数据...
git_branch_handlers.ts 正在载入提交数据...
github_handlers.ts 正在载入提交数据...
help_bot_handlers.ts 正在载入提交数据...
import_handlers.ts 正在载入提交数据...
language_model_handlers.ts 正在载入提交数据...
local_model_handlers.ts 正在载入提交数据...
local_model_lmstudio_handler.ts 正在载入提交数据...
local_model_ollama_handler.ts 正在载入提交数据...
mcp_handlers.ts 正在载入提交数据...
neon_handlers.ts 正在载入提交数据...
node_handlers.ts 正在载入提交数据...
portal_handlers.ts 正在载入提交数据...
pro_handlers.ts 正在载入提交数据...
problems_handlers.ts 正在载入提交数据...
prompt_handlers.ts 正在载入提交数据...
proposal_handlers.ts 正在载入提交数据...
release_note_handlers.ts 正在载入提交数据...
safe_handle.ts 正在载入提交数据...
security_handlers.ts 正在载入提交数据...
session_handlers.ts 正在载入提交数据...
settings_handlers.ts 正在载入提交数据...
shell_handler.ts 正在载入提交数据...
supabase_handlers.ts 正在载入提交数据...
template_handlers.ts 正在载入提交数据...
testing_chat_handlers.ts 正在载入提交数据...
token_count_handlers.ts 正在载入提交数据...
upload_handlers.ts 正在载入提交数据...
vercel_handlers.ts 正在载入提交数据...
version_handlers.ts 正在载入提交数据...
window_handlers.ts 正在载入提交数据...