Skip to content

Add Vercel preview deployments for docs site#147

Open
lennessyy wants to merge 7 commits into
mainfrom
vercel-preview
Open

Add Vercel preview deployments for docs site#147
lennessyy wants to merge 7 commits into
mainfrom
vercel-preview

Conversation

@lennessyy

@lennessyy lennessyy commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds Vercel preview deployments so every PR gets a preview URL showing the full docs site built with the PR's cookbook changes
  • Replaces the docs-build-check CI workflow — Vercel previews serve as both build validation and visual preview
  • Fixes a bug where the old CI workflow always built against remote main content instead of the PR's actual changes (the sync-ai-cookbook.js script was re-cloning from GitHub, ignoring the local checkout)

How it works

The build script (scripts/build-docs-preview.sh) clones temporalio/documentation, pre-populates the sync temp directory with the local cookbook content, patches ensureRepo() to skip re-cloning, then runs the Docusaurus build. The output is served by Vercel as a static site.

Test plan

  • Verify this PR itself gets a Vercel preview deployment
  • Check that the preview URL shows the docs site with cookbook content
  • Confirm recipe pages render correctly in the preview

🤖 Generated with Claude Code

Replace the docs-build-check CI workflow with Vercel preview deployments.
Every PR now gets a preview URL showing the full docs site built with the
PR's cookbook changes, which both validates the build and lets reviewers
see the rendered result.

The build script clones temporalio/documentation, patches the
sync-ai-cookbook.js to use the local checkout instead of re-cloning from
GitHub, and builds the Docusaurus site. This also fixes a bug in the old
CI workflow where the docs build always used remote main content instead
of the PR's changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
lennessyy and others added 2 commits June 10, 2026 14:38
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-cookbook Ready Ready Preview, Comment Jun 10, 2026 10:05pm

Request Review

lennessyy and others added 2 commits June 10, 2026 14:53
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Exit code 0 means skip in Vercel's ignoreCommand — remove it so builds
always proceed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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