Skip to content

Issue 007 expose vercel build logs via deployment logs service#506

Open
midenotch wants to merge 2 commits intoStellerCraft:mainfrom
midenotch:issue-007-expose-vercel-build-logs-via-deployment-logs-service
Open

Issue 007 expose vercel build logs via deployment logs service#506
midenotch wants to merge 2 commits intoStellerCraft:mainfrom
midenotch:issue-007-expose-vercel-build-logs-via-deployment-logs-service

Conversation

@midenotch
Copy link
Copy Markdown

Close: #481
I have successfully exposed Vercel build logs via the DeploymentLogsService and updated the logs API route.

Summary of Changes
DeploymentLogsService:
Added 'build' to the VALID_STAGES constant to allow filtering by the build phase.
Implemented the syncVercelLogs(deploymentId, supabase) method. This method fetches the vercel_deployment_id from the database, retrieves the logs from Vercel using VercelService, and upserts them into the deployment_logs table.
Used a deterministic ID prefix (vlc_) for synced logs to prevent duplicate entries across multiple requests.
Logs API Route:
Updated the GET /api/deployments/[id]/logs route to automatically trigger syncVercelLogs whenever the stage=build query parameter is provided.
This ensures that the build progress displayed to the user is always up-to-date with Vercel's state.
Testing:
Added new test cases to route.test.ts to verify that requesting the build stage correctly triggers the synchronization logic while other stages remain unaffected.
Verified all 12 tests in the suite pass.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 28, 2026

@midenotch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@midenotch
Copy link
Copy Markdown
Author

Done, Close: #506

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.

Expose Vercel deployment build logs via DeploymentLogsService

2 participants