@remotion/studio 4.0.408 → 4.0.410

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -580,7 +580,7 @@ var writeStaticFile = async ({
580
580
  if (window.remotion_isReadOnlyStudio) {
581
581
  throw new Error("writeStaticFile() is not available in read-only Studio");
582
582
  }
583
- const url = new URL("/api/add-asset", window.location.origin);
583
+ const url = new URL(`${window.remotion_staticBase}/api/add-asset`, window.location.origin);
584
584
  if (filePath.includes("\\")) {
585
585
  return Promise.reject(new Error("File path cannot contain backslashes"));
586
586
  }