Skip to content

🎥 Make videos programmatically with React

Update ssr.md

Jonny Burger5a2fbe484774
diff --git a/packages/docs/docs/ssr.md b/packages/docs/docs/ssr.md
index bdf490a38f..6e10bfe48e 100644
--- a/packages/docs/docs/ssr.md
+++ b/packages/docs/docs/ssr.md
@@ -31,6 +31,7 @@ const start = async () => {
const compositionId = 'HelloWorld'
// Create a webpack bundle of the entry file.
+ // TODO: This is wrong in Lambda
const bundleLocation = await bundle(require.resolve('./src/index'))
// Extract all the compositions you have defined in your project
@@ -61,7 +62,7 @@ const start = async () => {
const {assetsInfo} = await renderFrames({
config: composition,
// Path of the webpack bundle you have created
- serveUrl: bundled,
+ serveUrl: bundleLocation,
// Get's called after bundling is finished and the
// actual rendering starts.
onStart: () => console.log('Rendering frames...'),
@@ -104,7 +105,7 @@ const start = async () => {
pixelFormat: 'yuv420p',
// Information needed to construct audio correctly.
assetsInfo,
- webpackBundle: bundled,
+ webpackBundle: bundleLocation,
// Hook into the FFMPEG progress
onProgress: (frame) => undefined
})