Workers Sites wrangler not publishing all files of site

Using Workers Sites to publish static Wordpress site to Cloudflare, wrangler publish misses some css and js files from my ./public folder.

Is there a way to force all files to be recognised?

You can report directly to Wrangler Dev Team, it shouldn’t miss anything.

1 Like

Turns out that any files inside a subfolder named “dist” are ignored. This is specified in .gitignore which can be edited to “/dist” instead of “dist” so that wrangler publish only ignores the /dist in the workers sites project folder and not inside ./public

Bug report here: