Back to Remotion

staticFile() does not support remote URLs

packages/docs/docs/static-file-remote-urls.mdx

4.0.465722 B
Original Source

If you got the following error message:

staticFile() does not support remote URLs. Instead, pass the URL without wrapping it in staticFile().

You have tried to pass a remote URL to staticFile(). You don't need to wrap the path in staticFile, you can pass it directly:

tsx
import { Img, staticFile } from "remotion";

const MyComp = () => {
  return ;
};

Instead, :

tsx
import { Img } from "remotion";

const MyComp = () => {
  return ;
};

See also