File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/runtime/src/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { promisify } from 'util'
8
8
import { HandlerEvent , HandlerResponse } from '@netlify/functions'
9
9
import { http , https } from 'follow-redirects'
10
10
import NextNodeServer from 'next/dist/server/next-server'
11
+ import { satisfies } from 'semver'
11
12
12
13
import type { StaticRoute } from '../helpers/types'
13
14
@@ -292,7 +293,7 @@ const nextPluginVersion = async () => {
292
293
return packagePlugin ?. version
293
294
}
294
295
295
- export const nextVersionNum = async ( satisfies ) => satisfies ( await nextPluginVersion ( ) , '13.3.3 - 13.4.9' )
296
+ export const nextVersionNum = async ( sem ? ) => ( sem ?? satisfies ) ( await nextPluginVersion ( ) , '13.3.3 - 13.4.9' )
296
297
297
298
export const getMatchedRoute = (
298
299
paths : string ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { NextConfig } from 'next'
6
6
import type { PrerenderManifest } from 'next/dist/build'
7
7
import type { BaseNextResponse } from 'next/dist/server/base-http'
8
8
import type { NodeRequestHandler , Options } from 'next/dist/server/next-server'
9
- import { satisfies } from 'semver'
10
9
11
10
import { ExperimentalConfigWithLegacy } from '../helpers/utils'
12
11
@@ -68,7 +67,7 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
68
67
// conditionally use the prebundled React module
69
68
// PrebundledReact should only apply when appDir is set it falls between the specified Next versions
70
69
const { experimental } : NextConfigWithAppDir = this . nextConfig
71
- const version = await nextVersionNum ( satisfies )
70
+ const version = await nextVersionNum ( )
72
71
if ( experimental ?. appDir && version ) this . netlifyPrebundleReact ( url , this . nextConfig , parsedUrl )
73
72
74
73
// intercept on-demand revalidation requests and handle with the Netlify API
You can’t perform that action at this time.
0 commit comments