feat: use --id flag with branch name for stable preview URLs#108
Merged
kennyderek merged 5 commits intomainfrom Mar 18, 2026
Merged
feat: use --id flag with branch name for stable preview URLs#108kennyderek merged 5 commits intomainfrom
kennyderek merged 5 commits intomainfrom
Conversation
Co-Authored-By: kenny <kenny@buildwithfern.com>
Co-Authored-By: kenny <kenny@buildwithfern.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: kenny <kenny@buildwithfern.com>
Co-Authored-By: kenny <kenny@buildwithfern.com>
Co-Authored-By: kenny <kenny@buildwithfern.com>
kennyderek
approved these changes
Mar 18, 2026
This was referenced Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the
preview-docs.ymlworkflow to pass--idwith the PR branch name tofern generate --docs --preview. This makes the preview URL stable across repeated pushes to the same PR branch — instead of generating a new random UUID each time, the same branch name produces the same preview URL.Also bumps the Fern CLI version from
4.15.5→4.35.0so the version redirection uses a release that includes--idsupport.Depends on: fern-api/fern#13660 (adds
--idflag to CLI, merged) and fern-api/fern-platform#8742 (FDR server support, merged).Review & Testing Checklist for Human
4.15.5→4.35.0: This is a significant version jump. Verify that docs generation still works correctly with the new CLI version — there may be breaking changes or behavioral differences unrelated to--id./or special characters:github.head_refcan contain slashes (e.g.feature/my-docs-update). These get embedded into a DNS subdomain like{org}-preview-{id}.docs.buildwithfern.com. Slashes are invalid in DNS labels. Verify the FDR server sanitizes or rejects these gracefully.Notes
github.head_refis passed via anenvvariable (HEAD_REF) rather than inline${{ }}interpolation in therunblock, so it's treated as data by bash.--idflag end-to-end against the dev stack usingfern-dev:build— confirmed it generates stable preview URLs (e.g.smoke-test-preview-my-test-preview.docs.dev.buildwithfern.com).|| trueon the fern command means a CLI failure would be silently swallowed — the URL grep would just produce empty output and the PR comment would have a blank link.Link to Devin session: https://app.devin.ai/sessions/d3670821970e4e1687c12f99240e043e