Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/runtime/src/templates/edge/middleware-runtime.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Context } from 'https://edge.netlify.com'
// Available at build time
import matchers from './matchers.json' assert { type: 'json' }
import matchers from './matchers.json' with { type: 'json' }
import edgeFunction from './bundle.js'
import { buildNextRequest, buildResponse } from '../edge-shared/utils.ts'
import { getMiddlewareRouteMatcher, MiddlewareRouteMatch, searchParamsToUrlQuery } from '../edge-shared/next-utils.ts'
import nextConfig from '../edge-shared/nextConfig.json' assert { type: 'json' }
import nextConfig from '../edge-shared/nextConfig.json' with { type: 'json' }

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

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/templates/edge/rsc-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import prerenderManifest from '../edge-shared/prerender-manifest.json' assert { type: 'json' }
import prerenderManifest from '../edge-shared/prerender-manifest.json' with { type: 'json' }
import { getRscDataRouter, PrerenderManifest } from '../edge-shared/rsc-data.ts'

const handler = getRscDataRouter(prerenderManifest as PrerenderManifest)
Expand Down
Loading