Skip to content

Commit 6d97dd3

Browse files
committed
fix: use latest edge-function types
1 parent 3b2eb11 commit 6d97dd3

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

package-lock.json

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@netlify/blobs": "^8.2.0",
5353
"@netlify/build": "^32.1.0",
5454
"@netlify/edge-bundler": "^13.0.2",
55-
"@netlify/edge-functions": "^2.11.1",
55+
"@netlify/edge-functions": "^2.12.0",
5656
"@netlify/eslint-config-node": "^7.0.1",
5757
"@netlify/functions": "^3.0.4",
5858
"@netlify/serverless-functions-api": "^1.38.0",

src/build/functions/edge.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { cp, mkdir, readFile, rm, writeFile } from 'node:fs/promises'
22
import { dirname, join } from 'node:path'
33

4-
import type { IntegrationsConfig, Manifest, ManifestFunction } from '@netlify/edge-functions'
4+
import type { Manifest, ManifestFunction } from '@netlify/edge-functions'
55
import { glob } from 'fast-glob'
66
import type { EdgeFunctionDefinition as NextDefinition } from 'next/dist/build/webpack/plugins/middleware-plugin.js'
77
import { pathToRegexp } from 'path-to-regexp'
@@ -160,7 +160,7 @@ const getHandlerName = ({ name }: Pick<NextDefinition, 'name'>): string =>
160160
const buildHandlerDefinition = (
161161
ctx: PluginContext,
162162
{ name, matchers, page }: NextDefinition,
163-
): ManifestFunction & IntegrationsConfig => {
163+
): ManifestFunction => {
164164
const functionHandlerName = getHandlerName({ name })
165165
const functionName = name.endsWith('middleware')
166166
? 'Next.js Middleware Handler'

0 commit comments

Comments
 (0)