🎥 Make videos programmatically with React
update clients
Jonny Burger7e45e0bc1997
diff --git a/packages/docs/docs/lambda/php.md b/packages/docs/docs/lambda/php.mdindex 930f1caf24..cdc01db98e 100644--- a/packages/docs/docs/lambda/php.md+++ b/packages/docs/docs/lambda/php.md@@ -42,11 +42,11 @@ $dotenv = Dotenv::createUnsafeImmutable(__DIR__);$dotenv->load();// Specify the region you deployed to, for example "us-east-1"-$region = $_ENV['REMOTION_APP_REGION'];+$region = getenv('REMOTION_APP_REGION');// Specify the function you would like to call-$functionName = $_ENV['REMOTION_APP_FUNCTION_NAME'];+$functionName = getenv('REMOTION_APP_FUNCTION_NAME');// Specify the URL to your Webpack bundle-$serveUrl = $_ENV['REMOTION_APP_SERVE_URL'];+$serveUrl = getenv('REMOTION_APP_SERVE_URL');$provider = CredentialProvider::defaultProvider();diff --git a/packages/example/testlambdaintegrations.mjs b/packages/example/testlambdaintegrations.mjsindex 101eac5104..fd5d8e1671 100644--- a/packages/example/testlambdaintegrations.mjs+++ b/packages/example/testlambdaintegrations.mjs@@ -1,23 +1,29 @@import {execSync} from 'child_process';-const functionName = execSync(`pnpm exec remotion lambda functions ls -q`);+const functionName = execSync(`pnpm exec remotion lambda functions ls -q`)+ .toString('utf8')+ .trim();+console.log('=== PHP ===');execSync(`php src/render.php`, {env: {// eslint-disable-next-line no-undef...process.env,- REMOTION_APP_FUNCTION_NAME: functionName.toString('utf8'),+ REMOTION_APP_REGION: 'eu-central-1',+ REMOTION_APP_FUNCTION_NAME: functionName,REMOTION_APP_SERVE_URL: 'testbed-v6',},cwd: '../lambda-php-example',stdio: 'inherit',});++console.log('=== Python ===');execSync(`python testclient.py`, {env: {// eslint-disable-next-line no-undef...process.env,REMOTION_APP_REGION: 'eu-central-1',- REMOTION_APP_FUNCTION_NAME: functionName.toString('utf8'),+ REMOTION_APP_FUNCTION_NAME: functionName,REMOTION_APP_SERVE_URL: 'testbed-v6',},cwd: '../lambda-python',diff --git a/packages/lambda-php-example/src/render.php b/packages/lambda-php-example/src/render.phpindex 972d62de82..aee1d09cc7 100644--- a/packages/lambda-php-example/src/render.php+++ b/packages/lambda-php-example/src/render.php@@ -14,11 +14,11 @@ $dotenv = Dotenv::createUnsafeImmutable(__DIR__);$dotenv->load();// Specify the region you deployed to, for example "us-east-1"-$region = $_ENV['REMOTION_APP_REGION'];+$region = getenv('REMOTION_APP_REGION');// Specify the function you would like to call-$functionName = $_ENV['REMOTION_APP_FUNCTION_NAME'];+$functionName = getenv('REMOTION_APP_FUNCTION_NAME');// Specify the URL to your Webpack bundle-$serveUrl = $_ENV['REMOTION_APP_SERVE_URL'];+$serveUrl = getenv('REMOTION_APP_SERVE_URL');$provider = CredentialProvider::defaultProvider();