Thanks to visit codestin.com
Credit goes to github.com

Skip to content

@remotion/docs, @remotion/lambda: Fix docs card asset resolution and lambda ambient type bleed#6752

Open
bhaktofmahakal wants to merge 15 commits intoremotion-dev:mainfrom
bhaktofmahakal:bhaktofmahakal/vercel-fix-docs-lambda
Open

@remotion/docs, @remotion/lambda: Fix docs card asset resolution and lambda ambient type bleed#6752
bhaktofmahakal wants to merge 15 commits intoremotion-dev:mainfrom
bhaktofmahakal:bhaktofmahakal/vercel-fix-docs-lambda

Conversation

@bhaktofmahakal
Copy link
Contributor

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:

  • Added preview images to the frontmatter of the arrow.mdx and make-arrow.mdx documentation files for better visual context. [1] [2]
  • Updated the Article component in Article.tsx to display an interactive <Arrow /> preview in the header for Arrow-related articles, using specific layout adjustments for these previews. [1] [2] [3] [4]
  • Changed the Remotion logo image source to use the staticFile helper for consistency and improved asset management.

Configuration update:

  • Added "types": ["node"] to the tsconfig.json of 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 :

Copilot AI and others added 9 commits March 2, 2026 09:39
# Conflicts:
#	packages/docs/docs/shapes/arrow.mdx
#	packages/docs/docs/shapes/make-arrow.mdx
#	packages/docs/src/remotion/Article.tsx
#	packages/lambda/tsconfig.json
Copilot AI review requested due to automatic review settings March 2, 2026 12:46
@vercel
Copy link
Contributor

vercel bot commented Mar 2, 2026

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

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Mar 2, 2026 3:21pm
remotion Ready Ready Preview, Comment Mar 2, 2026 3:21pm

Request Review

pullfrog[bot]
pullfrog bot previously approved these changes Mar 2, 2026
Copy link
Contributor

@pullfrog pullfrog bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Pullfrog  | View workflow runpullfrog.com𝕏

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Article Remotion composition to optionally render an <Arrow /> header preview and to load the Remotion logo via staticFile().
  • Update @remotion/lambda tsconfig.json to 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.

@bhaktofmahakal
Copy link
Contributor Author

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

Pullfrog  | View workflow runpullfrog.com𝕏

waiting for merge.

Copy link
Member

@JonnyBurger JonnyBurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

4 participants