Skip to content

🎥 Make videos programmatically with React

Restore dotenv usage in example-videos with v17.3.1

Jonny Burger1a4afcb50ee5
diff --git a/bun.lock b/bun.lock
index d303a5687f..4ca8af60c2 100644
--- a/bun.lock
+++ b/bun.lock
@@ -667,6 +667,7 @@
"devDependencies": {
"@remotion/eslint-config-internal": "workspace:*",
"@typescript/native-preview": "catalog:",
+ "dotenv": "17.3.1",
"eslint": "catalog:",
},
},
diff --git a/packages/example-videos/package.json b/packages/example-videos/package.json
index 7454653788..5209113e63 100644
--- a/packages/example-videos/package.json
+++ b/packages/example-videos/package.json
@@ -20,6 +20,7 @@
"dependencies": {},
"devDependencies": {
"@remotion/eslint-config-internal": "workspace:*",
+ "dotenv": "17.3.1",
"eslint": "catalog:",
"@typescript/native-preview": "catalog:"
},
diff --git a/packages/example-videos/src/remote-videos.ts b/packages/example-videos/src/remote-videos.ts
index cbbc9e9b00..e3c1546a1a 100644
--- a/packages/example-videos/src/remote-videos.ts
+++ b/packages/example-videos/src/remote-videos.ts
@@ -1,7 +1,12 @@
/* eslint-disable no-console */
+import dotenv from 'dotenv';
import fs from 'fs';
import path from 'path';
+dotenv.config({
+ path: path.join(__dirname, '..', '.env'),
+});
+
export const remoteExampleVideos = {
mp4av1: 'https://pub-646d808d9cb240cea53bedc76dd3cd0c.r2.dev/mp4-av1.mp4',
fragmentedMoofTrickyDuration: