🎥 Make videos programmatically with React
fix stuff
Jonny Burger6cdc60134f1c
diff --git a/packages/lambda/build.ts b/packages/lambda/build.tsindex 0b292818cc..a03a1a0549 100644--- a/packages/lambda/build.ts+++ b/packages/lambda/build.ts@@ -54,6 +54,7 @@ fs.cpSync(),`${outdir}/mappings.wasm`,);+await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);fs.rmSync(outdir, {recursive: true});diff --git a/packages/lambda/src/shared/function-zip-path.ts b/packages/lambda/src/shared/function-zip-path.tsindex 4a14f9add9..c597f21e91 100644--- a/packages/lambda/src/shared/function-zip-path.ts+++ b/packages/lambda/src/shared/function-zip-path.ts@@ -1,5 +1,12 @@// Don't concatenate as we don't want Bun bundler to hardcode this+import path from 'node:path';+const b = '../';const a = 'remotionlambda-arm64.zip';-export const FUNCTION_ZIP_ARM64 = require.resolve(`../../` + a);+export const FUNCTION_ZIP_ARM64 = path.resolve(+ require.resolve(`../` + b),+ '..',+ '..',+ a,+);