@remotion/docs, @remotion/lambda: Fix docs card asset resolution and lambda ambient type bleed#6752
Conversation
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
# Conflicts: # packages/docs/docs/shapes/arrow.mdx # packages/docs/docs/shapes/make-arrow.mdx # packages/docs/src/remotion/Article.tsx # packages/lambda/tsconfig.json
There was a problem hiding this comment.
Low-urgency — changes are well-scoped and follow existing patterns.
Summary:
- Docs: Frontmatter image paths match the existing convention for shape components (
/generated/articles-docs-shapes-*.png) Article.tsx: Arrow preview implementation is clean;staticFile()for the logo ensures deterministic rendering in CI/Vercel- Lambda
tsconfig.json:"types": ["node"]is a valid fix to isolate ambient types and prevent TS1540 errors from transitive@types/*packages
There was a problem hiding this comment.
Pull request overview
This PR improves the determinism and presentation of Remotion docs “card” renders by switching the card logo to a local static asset and adding Arrow-specific previews/cover images. It also tightens the Lambda package TypeScript configuration to avoid unintended ambient @types/* interference during builds.
Changes:
- Add Arrow article cover images and commit the newly generated docs card PNGs.
- Update the docs
ArticleRemotion composition to optionally render an<Arrow />header preview and to load the Remotion logo viastaticFile(). - Update
@remotion/lambdatsconfig.jsonto include Node types explicitly.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/lambda/tsconfig.json | Explicitly includes Node ambient typings to prevent unrelated @types/* bleed in builds. |
| packages/docs/src/remotion/Article.tsx | Adds conditional Arrow preview rendering for Arrow articles; switches logo asset to staticFile() for deterministic rendering. |
| packages/docs/docs/shapes/arrow.mdx | Adds image: frontmatter pointing to the generated card asset. |
| packages/docs/docs/shapes/make-arrow.mdx | Adds image: frontmatter pointing to the generated card asset. |
| packages/docs/static/generated/articles-docs-shapes-arrow.png | New generated docs card image for the Arrow article. |
| packages/docs/static/generated/articles-docs-shapes-make-arrow.png | New generated docs card image for the makeArrow article. |
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
Co-authored-by: bhaktofmahakal <[email protected]>
…tribute-again' into bhaktofmahakal/vercel-fix-docs-lambda
waiting for merge. |
JonnyBurger
left a comment
There was a problem hiding this comment.
Hmm, this is too random.
Cards do not look good and there seem other, unrelated changes.
Either reduce it to 1 thing at a time, otherwise I cannot accept the PR.

This pull request introduces improvements to the documentation site and a minor configuration update for the Lambda package. The main focus is on enhancing the visual presentation of the Arrow shape documentation by adding preview images and interactive previews. Additionally, a small TypeScript configuration change is made to the Lambda package.
Documentation site enhancements:
arrow.mdxandmake-arrow.mdxdocumentation files for better visual context. [1] [2]Articlecomponent inArticle.tsxto display an interactive<Arrow />preview in the header for Arrow-related articles, using specific layout adjustments for these previews. [1] [2] [3] [4]staticFilehelper for consistency and improved asset management.Configuration update:
"types": ["node"]to thetsconfig.jsonof the Lambda package to ensure Node.js types are available during compilation.Replaced external docs card logo URL with local staticFile('img/remotion-white.png') to make card rendering deterministic in CI/Vercel.Regenerate affected arrow docs cards under packages/docs/static/generated/.
Add "types": ["node"] in packages/lambda/tsconfig.json to avoid unrelated ambient @types/* packages causing TS declaration build errors (TS1540 seen with @types/revalidator).
Screenshot :