Skip to content

🎥 Make videos programmatically with React

Revert "remove unnecessary file"

Jonny Burger7f05c95d4712
diff --git a/packages/lambda/src/api/deploy-site.ts b/packages/lambda/src/api/deploy-site.ts
index da0079ee1e..371e437036 100644
--- a/packages/lambda/src/api/deploy-site.ts
+++ b/packages/lambda/src/api/deploy-site.ts
@@ -1,7 +1,7 @@
-import {bundle} from '@remotion/bundler';
import {Internals, WebpackOverrideFn} from 'remotion';
import {deleteSite} from '../api/delete-site';
import {AwsRegion} from '../pricing/aws-regions';
+import {bundleSite} from '../shared/bundle-site';
import {getSitesKey} from '../shared/constants';
import {getAccountId} from '../shared/get-account-id';
import {makeS3ServeUrl} from '../shared/make-s3-url';
@@ -69,7 +69,7 @@ export const deploySite = async ({
region,
siteName: siteId,
});
- const bundled = await bundle(
+ const bundled = await bundleSite(
entryPoint,
options?.onBundleProgress ?? (() => undefined),
{
diff --git a/packages/lambda/src/shared/bundle-site.ts b/packages/lambda/src/shared/bundle-site.ts
new file mode 100644
index 0000000000..c9a0d71ac2
--- /dev/null
+++ b/packages/lambda/src/shared/bundle-site.ts
@@ -0,0 +1,3 @@
+import {bundle} from '@remotion/bundler';
+
+export const bundleSite = bundle;