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.02 Replies
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
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.