🎥 Make videos programmatically with React
SSR should have .ts extension normally
Jonny Burger7cee41c4d19f
diff --git a/packages/docs/blog/2021-08-11-remotion-2-3.md b/packages/docs/blog/2021-08-11-remotion-2-3.mdindex 28a274177a..0b2b43666e 100644--- a/packages/docs/blog/2021-08-11-remotion-2-3.md+++ b/packages/docs/blog/2021-08-11-remotion-2-3.md@@ -70,7 +70,7 @@ import { getCompositions, renderStill } from "@remotion/renderer";const compositionId = "HelloWorld";const bundleLocation = await bundle({- entryPoint: require.resolve("./src/index"),+ entryPoint: require.resolve("./src/index.ts"),});const comps = await getCompositions(bundleLocation, {diff --git a/packages/docs/docs/renderer/render-still.md b/packages/docs/docs/renderer/render-still.mdindex 974c12b5aa..a17c233a03 100644--- a/packages/docs/docs/renderer/render-still.md+++ b/packages/docs/docs/renderer/render-still.md@@ -27,7 +27,7 @@ import { getCompositions, renderStill } from "@remotion/renderer";const compositionId = "HelloWorld";const bundleLocation = await bundle({- entryPoint: require.resolve("./src/index"),+ entryPoint: require.resolve("./src/index.ts"),});const comps = await getCompositions(bundleLocation, {diff --git a/packages/docs/docs/ssr-legacy.md b/packages/docs/docs/ssr-legacy.mdindex 6a729d895a..b15d3e9d2e 100644--- a/packages/docs/docs/ssr-legacy.md+++ b/packages/docs/docs/ssr-legacy.md@@ -37,7 +37,7 @@ const start = async () => {const compositionId = "HelloWorld";// Create a webpack bundle of the entry file.- const bundleLocation = await bundle(require.resolve("./src/index"));+ const bundleLocation = await bundle(require.resolve("./src/index.ts"));// Extract all the compositions you have defined in your project// from the webpack bundle.@@ -60,7 +60,7 @@ const start = async () => {// We create a temporary directory for storing the framesconst framesDir = await fs.promises.mkdtemp(- path.join(os.tmpdir(), "remotion-")+ path.join(os.tmpdir(), "remotion-"),);// We create JPEGs for all framesdiff --git a/packages/docs/docs/ssr-node.mdx b/packages/docs/docs/ssr-node.mdxindex 5368ee8bd5..6f1f823550 100644--- a/packages/docs/docs/ssr-node.mdx+++ b/packages/docs/docs/ssr-node.mdx@@ -33,7 +33,7 @@ const compositionId = "HelloWorld";// You only have to create a bundle once, and you may reuse itconst bundleLocation = await bundle({- entryPoint: path.resolve("./src/index"),+ entryPoint: path.resolve("./src/index.ts"),// If you have a Webpack override, make sure to add it herewebpackOverride: (config) => config,});