🎥 Make videos programmatically with React
getting cwd and put it in remotion_projectPath
Kave McDaniel94815e8dea0f
diff --git a/packages/bundler/src/static-preview.ts b/packages/bundler/src/static-preview.tsindex f397f612fb..26af03d444 100644--- a/packages/bundler/src/static-preview.ts+++ b/packages/bundler/src/static-preview.ts@@ -16,6 +16,8 @@ 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>+<div id="container"></div><div id="menuportal-0"></div><div id="menuportal-1"></div>