🐛 BUG: vite build
without an index.html doesn't copy over assets directory to /dist
#8100
Labels
vite build
without an index.html doesn't copy over assets directory to /dist
#8100
Which Cloudflare product(s) does this pertain to?
Wrangler
What versions are you using?
@cloudflare/[email protected]
What operating system and version are you using?
Mac OS
Please provide a link to a minimal reproduction
No response
Describe the Bug
if there's no index.html, then the assets directory doesn't get copied to /dist, so wrangler deploy fails with an error
The directory specified by the "assets.directory" field in your configuration file does not exist:
.I thought a workaround would be to manually copy, so I ran
rm -rf dist && vite build && mkdir -p dist/client && cp -r public/* dist/client && wrangler deploy
but even tho that copies files and prevents wrangler from erroring, wrangler deploy doesn't pick up any files and upload from from there.Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: