Repository navigation
Docs: Fix broken source code links in the Lambda docs - #12630
Merged
JonnyBurger merged 3 commits intoOct 29, 2026
Merged
Conversation
Contributor
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Documentation-only fix that repoints stale GitHub source links on the Lambda docs pages.
- Moved API source links — 14
lambdapages now point atpackages/lambda-client/src/<file>.tsinstead of the removedpackages/lambda/src/api/<file>.ts. - Cost example asset —
cost-example.mdxnow linkspackages/example-videos/videos/bigbuckbunny.mp4instead of the oldpackages/example/public/path.
I verified each new target resolves on the branch: all 14 files exist under packages/lambda-client/src/, packages/example-videos/videos/bigbuckbunny.mp4 exists, and the 11 remaining packages/lambda/src/api/ links left untouched (e.g. deploy-function.ts, get-regions.ts, iam-validation/*) still resolve, so none were missed. The author's claim of 33 total links / 0 broken after the change holds up.
deepseek-v4.1-flash | 𝕏
# Conflicts: # packages/docs/docs/lambda/cost-example.mdx
This branch was successfully deployed
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
The Lambda docs pages end with a "Source code for this function" link pointing at the file that implements the function on GitHub. 15 of the 33 GitHub links across the 75 pages under
packages/docs/docs/lambdapoint to paths that no longer exist onmain, so they land on a 404. #12454 fixed the one broken link on thevalidateWebhookSignature()page; this PR fixes the remaining 15.14 of the 15 are the same breakage: the Lambda API surface moved from
packages/lambda/src/api/intopackages/lambda-client/src/, and the links kept the old prefix. Every one of them has an exact counterpart in the new location, so each fix is a one-line URL swap. The affected files areapp-router-webhook.ts,delete-function.ts,delete-render.ts,estimate-price.ts,express-webhook.ts,get-aws-client.ts,get-compositions-on-lambda.ts,get-functions.ts,get-render-progress.ts,get-sites.ts,pages-router-webhook.ts,presign-url.ts,render-still-on-lambda.tsandspeculate-function-name.ts.The last one is a stale asset path: the cost example page links
packages/example/public/bigbuckbunny.mp4, but the video lives atpackages/example-videos/videos/bigbuckbunny.mp4. Nothing else in the diff: no rewording, no reordering, exactly one line changes per page.Validation
I enumerated every
github.com/remotion-dev/remotion/blob/main/link on the 75 lambda docs pages with a small script and checked each target against the repository, instead of sampling a few pages. The script strips anchors and query strings before the existence check, so a URL likefile.ts#L1-L3is not counted as a missing file.mainbefore the swap (packages/lambda-client/src/<file>for the moved files), as waspackages/example-videos/videos/bigbuckbunny.mp4for the asset link.bun .github/scripts/check-docs-available-from.tsexits 0 over 1239 docs pages.packages/docs/docs/lambda/.Tradeoffs
These links can rot again the next time a file moves. I kept the diff to the URL fixes so the change stays a five-minute review, and the docs build only catches broken page links, not broken GitHub source links, so a small link checker in CI would be the durable fix if you want one later.