🎥 Make videos programmatically with React
add two new docs
Jonny Burgera81b338bef0f
diff --git a/packages/docs/docs/miscellaneous/render-on-edge.md b/packages/docs/docs/miscellaneous/render-on-edge.mdnew file mode 100644index 0000000000..3f09ed18b4--- /dev/null+++ b/packages/docs/docs/miscellaneous/render-on-edge.md@@ -0,0 +1,16 @@+---+sidebar_label: Rendering on the edge+title: Can I render videos on the edge?+crumb: "FAQ"+---++Edge runtimes such as Vercel Edge functions and Cloudflare Workers promise to change how we compute in the future.++Unfortunately, it is not possible to render Remotion videos on the “edge” and will most likely not be possible in the foreseeable future due to very heavy constraints being placed in edge functions.++The following constraints currently make it impossible to render videos on the edge:++- _Lack of filesystem APIs_: The `fs` module is not available on the edge.+- _Limited execution duration_: On Vercel, an edge function must respond within 30 seconds, on Cloudflare Workers, a function may only run for 10ms.+- _Code size limit_: On Vercel, the maximum function size in 4MB, on Cloudflare Workers it is 5MB. Remotion currently needs ~150MB of space due to Chrome and FFmpeg being dependencies.+- _Memory limit_: Vercel Edge Functions only have 128MB of RAM available. Remotion currently works best with 2GB+ of RAM.diff --git a/packages/docs/docs/miscellaneous/vercel-functions.md b/packages/docs/docs/miscellaneous/vercel-functions.mdnew file mode 100644index 0000000000..952b7aaa6b--- /dev/null+++ b/packages/docs/docs/miscellaneous/vercel-functions.md@@ -0,0 +1,9 @@+---+sidebar_label: Vercel Functions+title: Can I render videos using Vercel Serverless functions?+crumb: "FAQ"+---++It is currently not possible to render videos or stills on Vercel Serverless functions due to the 50MB maximum function size. Since Chromium is a dependency of Remotion, it alone almost entirely fills the quota available.++However, you can trigger a Remotion Lambda render through a Vercel Serverless function – our preferred choice for building applications. See our [Next template](https://github.com/remotion-dev/template-next) or [GitHub Unwrapped project](https://github.com/remotion-dev/github-unwrapped-2022) for an example of how to do so.diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex dc12484435..934e60fd3b 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -532,6 +532,8 @@ module.exports = {"miscellaneous/changing-temp-dir","miscellaneous/automatic-duration","miscellaneous/video-formats",+ "miscellaneous/vercel-functions",+ "miscellaneous/render-on-edge",],},{