Skip to content

🎥 Make videos programmatically with React

enable webpack override

Jonny Burgera81b1e288473
diff --git a/packages/docs/package.json b/packages/docs/package.json
index b2a27fcaf5..2e84f39190 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -22,6 +22,7 @@
"@remotion/gif": "^2.3.3",
"@remotion/media-utils": "^2.3.3",
"@remotion/player": "^2.3.3",
+ "@remotion/lambda": "^2.3.3",
"@remotion/renderer": "^2.3.3",
"@remotion/three": "^2.3.3",
"@splitbee/web": "^0.2.4",
diff --git a/packages/lambda/src/api/deploy-project.ts b/packages/lambda/src/api/deploy-project.ts
index e71ddc542c..e142d1dffe 100644
--- a/packages/lambda/src/api/deploy-project.ts
+++ b/packages/lambda/src/api/deploy-project.ts
@@ -1,5 +1,6 @@
import {PutBucketWebsiteCommand} from '@aws-sdk/client-s3';
import {bundle} from '@remotion/bundler';
+import {Internals} from 'remotion';
import {AwsRegion} from '../pricing/aws-regions';
import {getS3Client} from '../shared/aws-clients';
import {getSitesKey, REMOTION_BUCKET_PREFIX} from '../shared/constants';
@@ -44,6 +45,8 @@ export const deployProject = async ({
options?.onBundleProgress ?? (() => undefined),
{
publicPath: `/${subFolder}/`,
+ webpackOverride: Internals.getWebpackOverrideFn(),
+ enableCaching: Internals.getWebpackCaching(),
}
);