🎥 Make videos programmatically with React
various improvements
Jonny Burger77d6c10a2996
diff --git a/packages/lambda/src/functions/helpers/inspect-errors.ts b/packages/lambda/src/functions/helpers/inspect-errors.tsindex d4103218f1..60eb20ff79 100644--- a/packages/lambda/src/functions/helpers/inspect-errors.ts+++ b/packages/lambda/src/functions/helpers/inspect-errors.ts@@ -28,7 +28,7 @@ export const inspectErrors = async ({);return errors.map((e) => {if (e.includes('ENOSPC')) {- return 'Your lambda function reached the 512MB storage. Reduce the amount of space needed per lambda function. Feel free to reach out to #lambda Discord for help';+ return 'Your lambda function reached the 512MB storage limit. Reduce the amount of space needed per lambda function. Feel free to reach out to #lambda Discord for help';}if (e.includes('FATAL:zygote_communication_linux.cc')) {diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.tsindex b0cb7aeb3b..3d26c7ff78 100644--- a/packages/lambda/src/functions/launch.ts+++ b/packages/lambda/src/functions/launch.ts@@ -244,6 +244,7 @@ export const launchHandler = async (key: `${getStitcherErrorKeyPrefix(params.renderId)}${Date.now()}.txt`,body: JSON.stringify({error: err.message,+ stack: err.stack,}),region: getCurrentRegion(),acl: 'private',diff --git a/packages/lambda/src/functions/renderer.ts b/packages/lambda/src/functions/renderer.tsindex e41492cdb1..a8cee15c22 100644--- a/packages/lambda/src/functions/renderer.ts+++ b/packages/lambda/src/functions/renderer.ts@@ -210,6 +210,7 @@ export const rendererHandler = async (body: JSON.stringify({error: err.message,stack: err.stack,+ filesInTmp: fs.readFileSync('/tmp'),}),region: getCurrentRegion(),acl: 'private',diff --git a/packages/lambda/src/run.ts b/packages/lambda/src/run.tsindex 3b38562699..1ac941bb6d 100644--- a/packages/lambda/src/run.ts+++ b/packages/lambda/src/run.ts@@ -43,7 +43,7 @@ const getFnName = async (options: {region: getAwsRegion(),timeoutInSeconds: 120,layerArn,- memorySize: 1024,+ memorySize: 2048,});const {url} = await deployProject({diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.tsindex f38d57a60e..41733e22e7 100644--- a/packages/lambda/src/shared/constants.ts+++ b/packages/lambda/src/shared/constants.ts@@ -4,7 +4,7 @@ import {getFileExtensionFromCodec} from './get-file-extension-from-codec';export const MIN_MEMORY = 512;export const MAX_MEMORY = 10240;-export const DEFAULT_MEMORY_SIZE = 1024;+export const DEFAULT_MEMORY_SIZE = 2048;export const DEFAULT_TIMEOUT = 120;export const MIN_TIMEOUT = 15;