🎥 Make videos programmatically with React
get basename of current path and save it to remotion_projectName
Kave McDaniel8bcb9b588f10
diff --git a/packages/bundler/src/static-preview.ts b/packages/bundler/src/static-preview.tsindex 26af03d444..be8062ab8d 100644--- a/packages/bundler/src/static-preview.ts+++ b/packages/bundler/src/static-preview.ts@@ -1,3 +1,5 @@+import path from 'path';+export const indexHtml = (staticHash: string, editorName: string | null) =>`<!DOCTYPE html>@@ -16,7 +18,7 @@ export const indexHtml = (staticHash: string, editorName: string | null) =>? `<script>window.remotion_editorName = "${editorName}";</script>`: '<script>window.remotion_editorName = null;</script>'}- <script>window.remotion_projectPath = "${process.cwd()}";</script>+ <script>window.remotion_projectName = "${path.basename(process.cwd())}";</script><div id="container"></div><div id="menuportal-0"></div>