Skip to content

Commit 26d42be

Browse files
committed
@remotion/renderer: Fix client-side rendering being accidentially enabled by default
1 parent 1f5797f commit 26d42be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cli/src/parsed-cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export const parsedCli = minimist<CommandLineOptions>(process.argv.slice(2), {
205205
default: {
206206
[overwriteOption.cliFlag]: true,
207207
[bundleCacheOption.cliFlag]: null,
208+
[experimentalClientSideRenderingOption.cliFlag]: null,
208209
[mutedOption.cliFlag]: null,
209210
},
210211
}) as CommandLineOptions & {

packages/renderer/src/options/experimental-client-side-rendering.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ export const experimentalClientSideRenderingOption = {
1717
docLink: 'https://www.remotion.dev/docs/client-side-rendering',
1818
type: false as boolean,
1919
getValue: ({commandLine}) => {
20-
if (commandLine[cliFlag] !== undefined) {
21-
experimentalClientSideRenderingEnabled = true;
20+
if (commandLine[cliFlag] !== null) {
2221
return {
23-
value: experimentalClientSideRenderingEnabled,
22+
value: commandLine[cliFlag] as boolean,
2423
source: 'cli',
2524
};
2625
}

0 commit comments

Comments
 (0)