Skip to content

Commit 514b65f

Browse files
committed
feat: support middleware has matchers
1 parent e6d42de commit 514b65f

File tree

5 files changed

+413
-13
lines changed

5 files changed

+413
-13
lines changed

packages/runtime/src/helpers/edge.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,13 @@ const writeEdgeFunction = async ({
158158
return { function: name, pattern }
159159
})
160160
}
161-
162-
type NetlifyPluginConstantsWithEdgeFunctions = NetlifyPluginConstants & {
163-
// Until https://github.com/netlify/build/pull/4481 lands
164-
INTERNAL_EDGE_FUNCTIONS_SRC?: string
165-
}
166-
167-
export const cleanupEdgeFunctions = async ({
161+
export const cleanupEdgeFunctions = ({
168162
INTERNAL_EDGE_FUNCTIONS_SRC = '.netlify/edge-functions',
169-
}: NetlifyPluginConstantsWithEdgeFunctions) => {
170-
await emptyDir(INTERNAL_EDGE_FUNCTIONS_SRC)
171-
}
163+
}: NetlifyPluginConstants) => emptyDir(INTERNAL_EDGE_FUNCTIONS_SRC)
172164

173165
export const writeDevEdgeFunction = async ({
174166
INTERNAL_EDGE_FUNCTIONS_SRC = '.netlify/edge-functions',
175-
}: NetlifyPluginConstantsWithEdgeFunctions) => {
167+
}: NetlifyPluginConstants) => {
176168
const manifest: FunctionManifest = {
177169
functions: [
178170
{

0 commit comments

Comments
 (0)