workers-sdk
workers-sdk copied to clipboard
🐛 BUG: _worker.js file not in file counter
trafficstars
What version of Wrangler are you using?
2.0.24
What operating system are you using?
Linux
Describe the Bug
I have a directory with one index.html file, one redirected.html and one _worker.js file like the following:
$ tree
.
├── index.html
├── redirected.html
└── _worker.js
0 directories, 3 files
I'm using wrangler 2.0.24:
$ npx wrangler --version
⛅️ wrangler 2.0.24
--------------------
When I upload the files, _worker.js seems not uploaded Uploading... (2/2) (but it is):
$ CLOUDFLARE_ACCOUNT_ID=d97daaaaaaaabbbbbbbbbcccccccca054 CLOUDFLARE_API_TOKEN=T0k3n npx wrangler pages publish . --project-name=workr --branch=up
🌍 Uploading... (2/2)
✨ Success! Uploaded 0 files (2 already uploaded) (0.25 sec)
✨ Deployment complete! Take a peek over at https://b33be5fd.workr.pages.dev
Same in UI, _worker.js does not appear:

Upload via UI
When uploading via UI, you can see the _worker.js well listed during "upload step":

But later, as with wrangler, it does not appear in "Deployment details":

It's minor... but confusing :sweat_smile:
We should add a line in the CLI output indicating that the functions file was uploaded.
Thank you a lot @Skye-31 :tada: