shiveshnavin commited on
Commit
3838ecf
·
1 Parent(s): 6a578e6
Files changed (1) hide show
  1. proxy-renderer.js +2 -2
proxy-renderer.js CHANGED
@@ -7,8 +7,7 @@ import axios from 'axios';
7
  import os from 'os'
8
  import { exec, spawn } from 'child_process';
9
 
10
- const { RenderUtils } = await import('./src/RenderUtils.cjs');
11
- const { GenerateScript } = await import('./src/GenerateScript.cjs');
12
 
13
  const originalManuScriptPath = path.join(process.cwd(), 'public/original_manuscript.json');
14
  let cmd = `npm run preview`;
@@ -48,6 +47,7 @@ export function startChildProcess() {
48
  // start immediately
49
  // startChildProcess();
50
  export const renderProxy = async (outFile, jobId, options, controller) => {
 
51
  const ScriptStr = fs.readFileSync(originalManuScriptPath);
52
  const ScriptInput = JSON.parse(ScriptStr);
53
  let {
 
7
  import os from 'os'
8
  import { exec, spawn } from 'child_process';
9
 
10
+ const { RenderUtils } = await import('./remotion/RenderUtils.cjs');
 
11
 
12
  const originalManuScriptPath = path.join(process.cwd(), 'public/original_manuscript.json');
13
  let cmd = `npm run preview`;
 
47
  // start immediately
48
  // startChildProcess();
49
  export const renderProxy = async (outFile, jobId, options, controller) => {
50
+ const { GenerateScript } = await import('./remotion/GenerateScript.cjs');
51
  const ScriptStr = fs.readFileSync(originalManuScriptPath);
52
  const ScriptInput = JSON.parse(ScriptStr);
53
  let {