Edge Functions not detected during deploys

Do I have to do something more than just place a file with the JS or TS extension in /netlify/edge-functions to have it detected as an edge function during deploy? When I drag&drop my build directory in the web interface to trigger a production deploy, the log just says “No edge functions deployed” and I have no idea why could be wrong!

My site is debigare.com, for reference.

@SmashManiac The “Drag & Drop” deploy isn’t as well supported as the other methods for deploying sites on Netlify.

It’s mentioned here that they don’t “build anything”:

I also know there are past threads that mention that “Drag & Drop” doesn’t support functions:

Checking the documentation I see:

https://docs.netlify.com/edge-functions/get-started/#deploy

Use continuous deployment or Netlify CLI manual deploys to deploy your edge functions.

I would avoid using “Drag & Drop” purely because it has known issues which will not be fixed and is regarded as the “least-desirable and least-capable upload method”.

See:

1 Like

I read that page about 20 times and somehow missed this part. Thanks!

I’m guessing this restriction is because TypeScript edge functions require building? I wrote mine directly in JavaScript through so this restriction doesn’t seem to make much sense in that case.

Unfortunately my repo and builds have to be local, and Netlify CLI doesn’t work on my machine, so I’m kinda screwed right now.

If I knew what the Netlify CLI is supposed to do, I could potentially reproduce it locally manually as a workaround…

I can’t really comment on the implementation as I don’t work for Netlify.

All I know is that “Drag & Drop” deployments definitely aren’t a first-class citizen.