π₯ Make videos programmatically with React
add all the ways that are wrong
Jonny Burgerb722638fc160
diff --git a/packages/docs/docs/static-file-relative-paths.md b/packages/docs/docs/static-file-relative-paths.mdindex 79268c2358..8ca797b0fe 100644--- a/packages/docs/docs/static-file-relative-paths.md+++ b/packages/docs/docs/static-file-relative-paths.md@@ -24,6 +24,20 @@ import { staticFile } from "remotion";staticFile("./image.png");```+Or you tried to pass an absolute path:++```tsx twoslash title="β File should not use absolute paths"+import { staticFile } from "remotion";+staticFile("/Users/bob/remotion-project/public/image.png");+```++Or you tried to add a public/ fix which is unnecessary:++```tsx twoslash title="β File should not include the public/ prefix"+import { staticFile } from "remotion";+staticFile("public/image.png");+```+Instead, pass the name of the file that is inside the public folder directly:```tsx twoslash title="β Filename"