Skip to content

🎥 Make videos programmatically with React

load config correctly

Jonny Burger929b1b1d734f
diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsx
index 1de88e3ad0..de308ca508 100644
--- a/packages/cli/src/index.tsx
+++ b/packages/cli/src/index.tsx
@@ -2,7 +2,7 @@ import chalk from 'chalk';
import xns from 'xns';
import {checkNodeVersion} from './check-version';
import {getCliOptions} from './get-cli-options';
-import {getConfigFileName} from './get-config-file-name';
+import {loadConfig} from './get-config-file-name';
import {lambdaCommand} from './lambda-command';
import {loadConfigFile} from './load-config';
import {Log} from './log';
@@ -49,7 +49,7 @@ export const CliInternals = {
makeProgressBar,
Log,
loadConfigFile,
- getConfigFileName,
getCliOptions,
parseCommandLine,
+ loadConfig,
};
diff --git a/packages/docs/docs/lambda-changelog.md b/packages/docs/docs/lambda-changelog.md
index 755e596df3..7af70898f1 100644
--- a/packages/docs/docs/lambda-changelog.md
+++ b/packages/docs/docs/lambda-changelog.md
@@ -14,6 +14,10 @@ Keep track of changes to the APIs of Remotion Lambda here.
1. Redeploy your function: `npx remotion lambda functions deploy`
1. Migrate according to the changelog below:
+## Unreleased
+
+- `getDeployedLambdas()` was renamed to `getFunctions()`
+
## July 14th, 2021
- Emojis are now rendered using the Noto Color Emoji font
diff --git a/packages/lambda/src/cli/index.ts b/packages/lambda/src/cli/index.ts
index 5de39aa5fa..44ca551c96 100644
--- a/packages/lambda/src/cli/index.ts
+++ b/packages/lambda/src/cli/index.ts
@@ -72,8 +72,13 @@ export const executeCommand = async (args: string[]) => {
};
export const cli = async () => {
- // TODO: TS hardcoded, support JS just as in normal CLI
- CliInternals.loadConfigFile(CliInternals.getConfigFileName(false), false);
+ const appliedName = CliInternals.loadConfig();
+ if (appliedName) {
+ Log.verbose(`Applied configuration from ${appliedName}.`);
+ } else {
+ Log.verbose('No config file loaded.');
+ }
+
CliInternals.parseCommandLine();
await executeCommand(parsedLambdaCli._);
};