UNPKG

@remotion/renderer

Version:

Render Remotion videos using Node.js or Bun

39 lines (38 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.envFileOption = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const cliFlag = 'env-file'; let envFileLocation = null; exports.envFileOption = { name: 'Env File', cliFlag, description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify a location for a dotenv file. Default ", jsx_runtime_1.jsx("code", { children: ".env" }), "."] })), ssrName: null, docLink: 'https://www.remotion.dev/docs/cli/render#--env-file', getValue: ({ commandLine }) => { if (commandLine[cliFlag] !== undefined) { return { source: 'cli', value: commandLine[cliFlag], }; } if (envFileLocation !== null) { return { source: 'config', value: envFileLocation, }; } return { source: 'default', value: null, }; }, setConfig: (value) => { envFileLocation = value; }, type: '', id: cliFlag, };