Hi, everyone! Love the product and never ending flow of new features!
There might be a problem with deploying edge function for the first time - I couldn’t get mine to work with manual deploys until I passed
--build flag to the deploy command. Normally I do my builds before running
I use the word might because I can’t reproduce it anymore! Now I deploy without the
--build flag and edge-function gets indexed as expected. I haven’t updated it yet (or added another one) to check if new version will get deployed.
I don’t use the
[[edge_functions]] config field since I’m registering it in the file itself and am using the default location.
My assumption is that some build process has to be involved for edge functions indexing/deployment and here is the line of Netlify CLI package code which caught my attention.
It seems like the edge function bundling step might be skipped unless
[[edge_functions]] block is present in toml file or
--build flag is passed to
deploy command. Which doesn’t cover my case with separate builds and edge functions registered in-file. This is pure speculation on my side.
I’ll update this topic if I have more data. Feel free to close it after review.
- Netlify CLI version: 12.10.0
netlify devworks as expected
- currently getting 500 uncaught exception during edge function invocation from my edge function