Skip to content

🎥 Make videos programmatically with React

fix cloud run

Jonny Burger57787cf1cc49
diff --git a/packages/compositor-linux-x64-gnu/remotion b/packages/compositor-linux-x64-gnu/remotion
index e32de53d8d..af61b87877 100755
Binary files a/packages/compositor-linux-x64-gnu/remotion and b/packages/compositor-linux-x64-gnu/remotion differ
diff --git a/packages/renderer/src/assets/download-map.ts b/packages/renderer/src/assets/download-map.ts
index 34fa2e83c1..a710e47045 100644
--- a/packages/renderer/src/assets/download-map.ts
+++ b/packages/renderer/src/assets/download-map.ts
@@ -63,11 +63,17 @@ const makeAndReturn = (dir: string, name: string) => {
};
const dontInlineThis = 'package.json';
-const packageJsonPath = require.resolve('../../' + dontInlineThis);
-const packageJson = fs.existsSync(packageJsonPath)
- ? JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'))
- : null;
+let packageJsonPath = null;
+
+try {
+ packageJsonPath = require.resolve('../../' + dontInlineThis);
+} catch {}
+
+const packageJson =
+ packageJsonPath && fs.existsSync(packageJsonPath)
+ ? JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'))
+ : null;
export const makeDownloadMap = (): DownloadMap => {
const dir = tmpDir(