-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
See https://docs.netlify.com/build/edge-functions/overview/
The idea would be to add a package @mastrojs/netlify or similar that contains a script which would copy over all routes to netlify/edge-functions/ and append something like the following to each file:
export default GET;
export const config = { path: "/my-route-path" };or
export default POST;
export const config = { path: "/my-route-path", method: "POST" };see https://docs.netlify.com/build/edge-functions/declarations/#declare-edge-functions-in-netlify-toml
URLPattern expression. Must start with
/, for examplepath = "/*"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request