Skip to content

Commit 88d38fc

Browse files
committed
fix: assert syntax replaced by with for deno@v2 and node@22 compatibility
1 parent 526cd4e commit 88d38fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/runtime/src/templates/edge/middleware-runtime.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Context } from 'https://edge.netlify.com'
22
// Available at build time
3-
import matchers from './matchers.json' assert { type: 'json' }
3+
import matchers from './matchers.json' with { type: 'json' }
44
import edgeFunction from './bundle.js'
55
import { buildNextRequest, buildResponse } from '../edge-shared/utils.ts'
66
import { getMiddlewareRouteMatcher, MiddlewareRouteMatch, searchParamsToUrlQuery } from '../edge-shared/next-utils.ts'
7-
import nextConfig from '../edge-shared/nextConfig.json' assert { type: 'json' }
7+
import nextConfig from '../edge-shared/nextConfig.json' with { type: 'json' }
88

99
const matchesMiddleware: MiddlewareRouteMatch = getMiddlewareRouteMatcher(matchers || [])
1010

packages/runtime/src/templates/edge/rsc-data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import prerenderManifest from '../edge-shared/prerender-manifest.json' assert { type: 'json' }
1+
import prerenderManifest from '../edge-shared/prerender-manifest.json' with { type: 'json' }
22
import { getRscDataRouter, PrerenderManifest } from '../edge-shared/rsc-data.ts'
33

44
const handler = getRscDataRouter(prerenderManifest as PrerenderManifest)

0 commit comments

Comments
 (0)