Skip to main content

提供 URL

Serve URL 是托管 Remotion Bundle 的 URL。
在渲染视频时,Remotion 会打开一个无头浏览器并访问该 URL,以便对其进行截图。

🌐 A Serve URL is a URL under which a Remotion Bundle is hosted.
When rendering your video, Remotion will open a headless browser and visit that URL in order to make screenshots of it.

Serve URL 最常见的使用案例是当在 Lambda 上渲染视频时,你需要将你的 bundle 部署到 Amazon S3,这将 使其成为 Serve URL

🌐 The most common use case for a Serve URL is when rendering a video on Lambda, you need to deploy your bundle to Amazon S3, which will make it a Serve URL.

如果你有一个 Serve URL,你也可以通过传入 serve URL 而不是 entry point 来在本地渲染视频。

🌐 If you have a Serve URL, you can also render a video locally by passing a serve URL instead of an entry point.

提供的 URL 不必在 S3 上,它可以在任何支持静态部署的提供商上(例如 Netlify、Vercel 或 GitHub Pages),甚至可以是运行在本地主机的 URL。

🌐 A serve URL doesn't have to be on S3, it can be on any provider that supports static deployments (e.g. Netlify, Vercel or GitHub pages) or even be a URL that runs on localhost.