🎥 Make videos programmatically with React
import type {AnyRemotionOption} from './option';
let forceIPv4 = false;
const cliFlag = 'ipv4' as const;
export const ipv4Option = {
name: 'IPv4',
addedIn: '4.0.125',
cliFlag,
description: () => (
<>Forces Remotion to bind to an IPv4 interface for the Studio server.</>
),
ssrName: null,
docLink: 'https://www.remotion.dev/docs/options/ipv4',
type: false as boolean,
getValue: ({commandLine}) => {
if (commandLine[cliFlag] !== undefined && commandLine[cliFlag] !== null) {
return {
value: commandLine[cliFlag] as boolean,
source: 'cli',
};
}
return {
value: forceIPv4,
source: 'config',
};
},
setConfig(value: boolean) {
forceIPv4 = value;
},
id: cliFlag,
} satisfies AnyRemotionOption<boolean>;