Skip to content

staticFile finds a web project's public/ - #194

Merged
shinyobjectz merged 1 commit into
mainfrom
media-public
Nov 19, 2026
Merged

shinyobjectz merged 1 commit into
mainfrom
media-public

Conversation

@shinyobjectz

Copy link
Copy Markdown
Owner

A web project keeps its static files in public/. raea's staticFile is /media/x, looked for in the edit's media/, then the project's media/, then its assets/. So a project brought over with its footage in public/ refused that footage, while its sounds played, because the sound preload already scans public/. rc7's Windows run refused it with vid\media/orbit.mp4: The system cannot find the path specified.

media_path now tries public/ last, first the edit's own and then the project's, so nothing found today moves. Every engine path a staticFile takes goes through media_path:

  • the render's video and pictures;
  • the bundler's rewrite;
  • CSS url()s and UI materials;
  • model calls and games;
  • the frame's media rows.

media_from_the_project checks three things:

  • a clip only in the project's public/ is found;
  • the edit's own public/ comes ahead of the project's;
  • assets/ still comes ahead of public/.

Checked: the test passes and the gates pass. rc8's Windows run will render a composition with its clip in public\.

🤖 Generated with Claude Code

A web project keeps its static files in public/. raea's staticFile is /media/x, found in the edit's media/, the project's media/, then its assets/, so a project brought over with its footage in public/ refused it ("vid\\media/orbit.mp4: The system cannot find the path specified", seen on rc7's Windows run) while its sounds played: the sound preload already scans public/.

media_path tries public/ last, the edit's own and then the project's, so nothing found today moves. Every engine path a staticFile takes goes through media_path: the render's video and pictures, the bundler's rewrite, CSS url()s, UI materials, model calls, games and the frame's media rows.

media_from_the_project: a clip only in the project's public/ is found, the edit's own public/ comes ahead of the project's, and assets/ still comes ahead of public/.
@shinyobjectz
shinyobjectz merged commit 813ea34 into main Nov 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant