🎥 Make videos programmatically with React
Fix static file in Next.JS SSR
Jonny Burger0cb877d79ad7
diff --git a/packages/core/src/static-file.ts b/packages/core/src/static-file.tsindex d8a8b8ca5a..d1fd87790a 100644--- a/packages/core/src/static-file.ts+++ b/packages/core/src/static-file.ts@@ -7,7 +7,7 @@ const trimLeadingSlash = (path: string) => {};const inner = (path: string): string => {- if (window.remotion_staticBase) {+ if (typeof window !== 'undefined' && window.remotion_staticBase) {return `${window.remotion_staticBase}/${trimLeadingSlash(path)}`;}