Skip to content

🎥 Make videos programmatically with React

Update bundle-lambda.ts

Jonny Burger9d9cdf5c936b
diff --git a/packages/lambda/src/bundle-lambda.ts b/packages/lambda/src/bundle-lambda.ts
index 896cff4c06..97aee8ab54 100644
--- a/packages/lambda/src/bundle-lambda.ts
+++ b/packages/lambda/src/bundle-lambda.ts
@@ -12,7 +12,7 @@ export const bundleLambda = async (type: 'render') => {
(fs.rmSync ?? fs.rmdirSync)(outdir, {recursive: true});
fs.mkdirSync(outdir, {recursive: true});
- const template = path.join(__dirname, '..', 'src', 'functions', 'index.ts');
+ const template = require.resolve(path.join(__dirname, 'functions', 'index'));
await esbuild.build({
platform: 'node',