staticFile() does not support relative paths
If you got the following error message:
You have tried to pass a relative path to staticFile():
❌ Relative pathtsxstaticFile } from "remotion";staticFile ("../public/image.png");
❌ Relative pathtsxstaticFile } from "remotion";staticFile ("../public/image.png");
❌ File should not have ./ prefixtsxstaticFile } from "remotion";staticFile ("./image.png");
❌ File should not have ./ prefixtsxstaticFile } from "remotion";staticFile ("./image.png");
Instead, pass the name of the file that is inside the public folder directly:
✅ FilenametsxstaticFile } from "remotion";staticFile ("image.png");
✅ FilenametsxstaticFile } from "remotion";staticFile ("image.png");