Static Assets can't fetch subdirectories

I am facing issues where no matter the project (even a fresh project from a template), I am always getting 404 responses if the static asset path is not at the root directory. I just need some way of debugging this, because its driving me crazy. Config Info: wrangler 4.22.0 node 20.0.0
2 Replies
King Kazu
King KazuOP5mo ago
bumping my node version to 22 solved it may want to document this bc you guys use fs.readDir with recursive: true and thats no implemented pre node 22 iirc
James
James5mo ago
This would have worked with >=20.1.0 too fwiw which is when recursive was added to readdir, just not 20.0.0. Wrangler officially supports the latest current, active LTS, and maintenance LTS versions of Node.js.

Did you find this page helpful?