Skip to content

🎥 Make videos programmatically with React

Bugfix for not being able to start Studio

Jonny Burger0a89c7b62f1c
diff --git a/packages/studio/src/components/Timeline/TimelineStack/index.tsx b/packages/studio/src/components/Timeline/TimelineStack/index.tsx
index 06f163f5a2..7a393bbfbe 100644
--- a/packages/studio/src/components/Timeline/TimelineStack/index.tsx
+++ b/packages/studio/src/components/Timeline/TimelineStack/index.tsx
@@ -28,7 +28,9 @@ import {getOriginalSourceAttribution} from './source-attribution';
// @ts-expect-error
SourceMapConsumer.initialize({
- 'lib/mappings.wasm': window.remotion_publicPath + SOURCE_MAP_ENDPOINT,
+ 'lib/mappings.wasm':
+ (window.remotion_publicPath === '/' ? '' : window.remotion_publicPath) +
+ SOURCE_MAP_ENDPOINT,
});
export const TimelineStack: React.FC<{