🎥 Make videos programmatically with React
studioservercommand
Jonny Burgerae1b7765a51f
diff --git a/packages/bundler/src/bundle.ts b/packages/bundler/src/bundle.tsindex 91d506fee1..986ba6a064 100644--- a/packages/bundler/src/bundle.ts+++ b/packages/bundler/src/bundle.ts@@ -246,7 +246,7 @@ export async function bundle(...args: Arguments): Promise<string> {editorName: null,inputProps: null,remotionRoot: resolvedRemotionRoot,- previewServerCommand: null,+ studioServerCommand: null,renderQueue: null,numberOfAudioTags: 0,publicFiles: readRecursively({diff --git a/packages/bundler/src/index-html.ts b/packages/bundler/src/index-html.tsindex 38f6ad2908..48cfcd159e 100644--- a/packages/bundler/src/index-html.ts+++ b/packages/bundler/src/index-html.ts@@ -40,7 +40,7 @@ export const indexHtml = ({envVariables,staticHash,remotionRoot,- previewServerCommand,+ studioServerCommand,renderQueue,numberOfAudioTags,publicFiles,@@ -54,7 +54,7 @@ export const indexHtml = ({inputProps: object | null;envVariables?: Record<string, string>;remotionRoot: string;- previewServerCommand: string | null;+ studioServerCommand: string | null;renderQueue: unknown | null;numberOfAudioTags: number;publicFiles: StaticFile[];@@ -93,8 +93,8 @@ ${renderDefaults)};</script><script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>- <script>window.remotion_previewServerCommand = ${- previewServerCommand ? JSON.stringify(previewServerCommand) : 'null'+ <script>window.remotion_studioServerCommand = ${+ studioServerCommand ? JSON.stringify(studioServerCommand) : 'null'};</script>${inputPropsdiff --git a/packages/cli/src/editor/components/Notifications/ServerDisconnected.tsx b/packages/cli/src/editor/components/Notifications/ServerDisconnected.tsxindex 0e62c12a9d..a16c58c465 100644--- a/packages/cli/src/editor/components/Notifications/ServerDisconnected.tsx+++ b/packages/cli/src/editor/components/Notifications/ServerDisconnected.tsx@@ -52,11 +52,11 @@ export const ServerDisconnected: React.FC = () => {<div style={container} className="css-reset"><div style={message}>The preview server has disconnected. <br />- {window.remotion_previewServerCommand ? (+ {window.remotion_studioServerCommand ? (<span>Run{' '}<code style={inlineCode}>- {window.remotion_previewServerCommand}+ {window.remotion_studioServerCommand}</code>{' '}to run it again.</span>diff --git a/packages/cli/src/preview-server/routes.ts b/packages/cli/src/preview-server/routes.tsindex 57cac8f0b2..aa06f52979 100644--- a/packages/cli/src/preview-server/routes.ts+++ b/packages/cli/src/preview-server/routes.ts@@ -103,7 +103,7 @@ const handleFallback = async ({envVariables: getEnvVariables(),inputProps: getCurrentInputProps(),remotionRoot,- previewServerCommand:+ studioServerCommand:packageManager === 'unknown' ? null : packageManager.startCommand,renderQueue: getRenderQueue(),numberOfAudioTags:diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex b0442739d4..4bf314d969 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -21,7 +21,7 @@ declare global {remotion_numberOfAudioTags: number;remotion_projectName: string;remotion_cwd: string;- remotion_previewServerCommand: string;+ remotion_studioServerCommand: string;remotion_setFrame: (frame: number) => void;remotion_initialFrame: number;remotion_proxyPort: number;