Edge functions - Support multiple paths per declaration

The request is very simple, today this is what I have to do:

[[edge_functions]]
path = "/page1"
function = "function_name"

[[edge_functions]]
path = "/page2"
function = "function_name"

[[edge_functions]]
path = "/page3"
function = "function_name"

and this is what I wanted to be able to do to save space and make it clearer that all these paths share a function:

[[edge_functions]]
path = ["/page1", "/page2", "/page3"]
function = "function_name"

Thank you

Good suggestion! You can already use regex to do something like this as demonstrated in our docs here:

Actually, the regex is a much better and more flexible solution, but can I use the pattern instead of path in the netlify.toml? Or only through that integration thing (I haven’t had the time to try to understand what that is yet)?

netlify.toml can only support single paths, no RegExs. RegExs can be used by creating a manifest file yourself. We usually create a manifest file ourselves by parsing your paths in netlify.toml, but by following the above documentation, I believe you can generate one for your use case.