🎥 Make videos programmatically with React
temporarily make it easier to debug
Jonny Burger5fb69913f57b
diff --git a/packages/lambda/src/admin/make-layer-public.ts b/packages/lambda/src/admin/make-layer-public.tsindex 70652461ac..e2e3dbbcb9 100644--- a/packages/lambda/src/admin/make-layer-public.ts+++ b/packages/lambda/src/admin/make-layer-public.ts@@ -12,27 +12,7 @@ import type {HostedLayers} from '../shared/hosted-layers';const runtimes: string[] = ['nodejs18.x'];const layerInfo: HostedLayers = {- 'ap-northeast-1': [],- 'ap-south-1': [],- 'ap-southeast-1': [],- 'ap-southeast-2': [],'eu-central-1': [],- 'eu-west-1': [],- 'eu-west-2': [],- 'us-east-1': [],- 'us-east-2': [],- 'us-west-2': [],- 'af-south-1': [],- 'ap-east-1': [],- 'ap-northeast-2': [],- 'ap-northeast-3': [],- 'ca-central-1': [],- 'eu-north-1': [],- 'eu-south-1': [],- 'eu-west-3': [],- 'me-south-1': [],- 'sa-east-1': [],- 'us-west-1': [],};const makeLayerPublic = async () => {diff --git a/packages/lambda/src/functions/helpers/get-chromium-executable-path.ts b/packages/lambda/src/functions/helpers/get-chromium-executable-path.tsindex 9bd73172ce..854f2bbe12 100644--- a/packages/lambda/src/functions/helpers/get-chromium-executable-path.ts+++ b/packages/lambda/src/functions/helpers/get-chromium-executable-path.ts@@ -1,7 +1,6 @@if (- /^AWS_Lambda_nodejs(?:10|12|14|16|18)[.]x$/.test(- process.env.AWS_EXECUTION_ENV ?? ''- ) === true+ /^AWS_Lambda_nodejs(?:18)[.]x$/.test(process.env.AWS_EXECUTION_ENV ?? '') ===+ true) {if (process.env.FONTCONFIG_PATH === undefined) {process.env.FONTCONFIG_PATH = '/opt';diff --git a/packages/lambda/src/pricing/aws-regions.ts b/packages/lambda/src/pricing/aws-regions.tsindex ce9bb639bb..8c9e027ac4 100644--- a/packages/lambda/src/pricing/aws-regions.ts+++ b/packages/lambda/src/pricing/aws-regions.ts@@ -1,45 +1,5 @@-export const DEFAULT_AWS_REGIONS = [- 'eu-central-1',- 'eu-west-1',- 'eu-west-2',- 'eu-west-3',- 'eu-north-1',- 'us-east-1', // N. Virginia- 'us-east-2', // Ohio;- 'us-west-1',- 'us-west-2', // Oregon- 'ap-south-1',- 'ap-southeast-1',- 'ap-southeast-2',- 'ap-northeast-1',- 'ap-northeast-2',- 'ap-northeast-3',- 'ca-central-1',- 'sa-east-1',-] as const;+export const DEFAULT_AWS_REGIONS = ['eu-central-1'] as const;-export const AWS_REGIONS = [- 'eu-central-1',- 'eu-west-1',- 'eu-west-2',- 'eu-west-3',- 'eu-south-1',- 'eu-north-1',- 'us-east-1', // N. Virginia- 'us-east-2', // Ohio;- 'us-west-1',- 'us-west-2', // Oregon- 'af-south-1',- 'ap-south-1',- 'ap-east-1',- 'ap-southeast-1',- 'ap-southeast-2',- 'ap-northeast-1',- 'ap-northeast-2',- 'ap-northeast-3',- 'ca-central-1',- 'me-south-1',- 'sa-east-1',-] as const;+export const AWS_REGIONS = ['eu-central-1'] as const;export type AwsRegion = typeof AWS_REGIONS[number];diff --git a/packages/lambda/src/shared/hosted-layers.ts b/packages/lambda/src/shared/hosted-layers.tsindex 88a09e5925..90ee8d2d20 100644--- a/packages/lambda/src/shared/hosted-layers.ts+++ b/packages/lambda/src/shared/hosted-layers.ts@@ -7,256 +7,16 @@ export type HostedLayers = {};export const hostedLayers: HostedLayers = {- 'ap-northeast-1': [- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'ap-south-1': [- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'ap-southeast-1': [- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'ap-southeast-2': [- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],'eu-central-1': [{layerArn:'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'eu-west-1': [- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'eu-west-2': [- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'us-east-1': [- {- layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-fonts-arm64',version: 10,},{layerArn:- 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 18,- },- ],- 'us-east-2': [- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'us-west-2': [- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 5,- },- {- layerArn:- 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 9,- },- ],- 'af-south-1': [- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:af-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'ap-east-1': [- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-east-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'ap-northeast-2': [- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-2:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'ap-northeast-3': [- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ap-northeast-3:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'ca-central-1': [- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:ca-central-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'eu-north-1': [- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-north-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'eu-south-1': [- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'eu-west-3': [- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:eu-west-3:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'me-south-1': [- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:me-south-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'sa-east-1': [- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:sa-east-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,- },- ],- 'us-west-1': [- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-fonts-arm64',- version: 2,- },- {- layerArn:- 'arn:aws:lambda:us-west-1:678892195805:layer:remotion-binaries-chromium-arm64',- version: 2,+ 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',+ version: 13,},],};