workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: _worker.js file not in file counter

Open thibault-deriv opened this issue 3 years ago • 1 comments
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: no_worker_ui

Upload via UI

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

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

It's minor... but confusing :sweat_smile:

thibault-deriv avatar Aug 02 '22 09:08 thibault-deriv

We should add a line in the CLI output indicating that the functions file was uploaded.

nprogers avatar Aug 03 '22 14:08 nprogers

Thank you a lot @Skye-31 :tada:

thibault-deriv avatar Aug 15 '22 14:08 thibault-deriv