@@ -410,19 +410,19 @@ const baseServerReplacements: Array<[string, string]> = [
410
410
const nextServerReplacements : Array < [ string , string ] > = [
411
411
[
412
412
`getMiddlewareManifest() {\n if (this.minimalMode) return null;` ,
413
- `getMiddlewareManifest() {\n if (this.minimalMode || (process.env.NETLIFY && process.env.NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process.env.NEXT_DISABLE_NETLIFY_EDGE !== '1')) return null;` ,
413
+ `getMiddlewareManifest() {\n if (this.minimalMode || (! process.env.NETLIFY_DEV && process.env.NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process.env.NEXT_DISABLE_NETLIFY_EDGE !== '1')) return null;` ,
414
414
] ,
415
415
[
416
416
`generateCatchAllMiddlewareRoute(devReady) {\n if (this.minimalMode) return []` ,
417
- `generateCatchAllMiddlewareRoute(devReady) {\n if (this.minimalMode || (process.env.NETLIFY && process.env.NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process.env.NEXT_DISABLE_NETLIFY_EDGE !== '1')) return [];` ,
417
+ `generateCatchAllMiddlewareRoute(devReady) {\n if (this.minimalMode || (! process.env.NETLIFY_DEV && process.env.NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process.env.NEXT_DISABLE_NETLIFY_EDGE !== '1')) return [];` ,
418
418
] ,
419
419
[
420
420
`generateCatchAllMiddlewareRoute() {\n if (this.minimalMode) return undefined;` ,
421
- `generateCatchAllMiddlewareRoute() {\n if (this.minimalMode || (process.env.NETLIFY && process.env.NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process.env.NEXT_DISABLE_NETLIFY_EDGE !== '1')) return undefined;` ,
421
+ `generateCatchAllMiddlewareRoute() {\n if (this.minimalMode || (! process.env.NETLIFY_DEV && process.env.NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process.env.NEXT_DISABLE_NETLIFY_EDGE !== '1')) return undefined;` ,
422
422
] ,
423
423
[
424
424
`getMiddlewareManifest() {\n if (this.minimalMode) {` ,
425
- `getMiddlewareManifest() {\n if (!this.minimalMode && (process.env.NETLIFY && process.env.NEXT_DISABLE_NETLIFY_EDGE === 'true' || process.env.NEXT_DISABLE_NETLIFY_EDGE === '1')) {` ,
425
+ `getMiddlewareManifest() {\n if (!this.minimalMode && (! process.env.NETLIFY_DEV && process.env.NEXT_DISABLE_NETLIFY_EDGE === 'true' || process.env.NEXT_DISABLE_NETLIFY_EDGE === '1')) {` ,
426
426
] ,
427
427
]
428
428
0 commit comments