@netlify/plugin-nextjs 4.10.0 → 4.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -34,6 +34,7 @@ const plugin = {
34
34
  netlifyConfig.build.environment.NEXT_PRIVATE_TARGET = 'server';
35
35
  },
36
36
  async onBuild({ constants, netlifyConfig, utils: { build: { failBuild }, }, }) {
37
+ var _a;
37
38
  if ((0, utils_1.shouldSkip)()) {
38
39
  return;
39
40
  }
@@ -94,7 +95,7 @@ const plugin = {
94
95
  await (0, edge_1.updateConfig)(publish);
95
96
  }
96
97
  const middlewareManifest = await (0, edge_1.loadMiddlewareManifest)(netlifyConfig);
97
- if (!process.env.NEXT_USE_NETLIFY_EDGE && middlewareManifest.sortedMiddleware.length !== 0) {
98
+ if (!process.env.NEXT_USE_NETLIFY_EDGE && ((_a = middlewareManifest === null || middlewareManifest === void 0 ? void 0 : middlewareManifest.sortedMiddleware) === null || _a === void 0 ? void 0 : _a.length)) {
98
99
  console.log((0, chalk_1.yellowBright)((0, outdent_1.outdent) `
99
100
  You are using Next.js Middleware without Netlify Edge Functions.
100
101
  This will soon be deprecated because it negatively affects performance and will disable ISR and static rendering.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/plugin-nextjs",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
4
4
  "description": "Run Next.js seamlessly on Netlify",
5
5
  "main": "lib/index.js",
6
6
  "files": [