@netlify/plugin-nextjs 4.16.0 → 4.17.1-runtime.0

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.
@@ -9,7 +9,7 @@ const findDistDir = (publish) => {
9
9
  if (!(0, utils_1.shouldSkip)()) {
10
10
  return publish;
11
11
  }
12
- // In this situation, the user has disabled the plugin, which means that they might be using next export,
12
+ // In this situation, the user has disabled the next-runtime, which means that they might be using next export,
13
13
  // so we'll look in a few places to find the site root. This allows us to find the .next directory.
14
14
  for (const root of [(0, path_1.resolve)(publish, '..'), (0, path_1.resolve)(publish, '..', '..')]) {
15
15
  if ((0, fs_1.existsSync)((0, path_1.join)(root, 'next.config.js'))) {
@@ -136,7 +136,7 @@ const findModuleFromBase = ({ paths, candidates }) => {
136
136
  exports.findModuleFromBase = findModuleFromBase;
137
137
  const isNextAuthInstalled = () => {
138
138
  try {
139
- // eslint-disable-next-line import/no-unassigned-import, import/no-unresolved, n/no-missing-require
139
+ // eslint-disable-next-line import/no-unassigned-import, import/no-extraneous-dependencies, n/no-extraneous-require
140
140
  require('next-auth');
141
141
  return true;
142
142
  }
@@ -42,7 +42,7 @@ const verifyNetlifyBuildVersion = ({ IS_LOCAL, NETLIFY_BUILD_VERSION, failBuild,
42
42
  // We check for build version because that's what's available to us, but prompt about the cli because that's what they can upgrade
43
43
  if (IS_LOCAL && !(0, semver_1.satisfies)(NETLIFY_BUILD_VERSION, REQUIRED_BUILD_VERSION, { includePrerelease: true })) {
44
44
  return failBuild((0, outdent_1.outdent) `
45
- This version of the Essential Next.js plugin requires netlify-cli@6.12.4 or higher. Please upgrade and try again.
45
+ This version of the Next Runtime requires netlify-cli@6.12.4 or higher. Please upgrade and try again.
46
46
  You can do this by running: "npm install -g netlify-cli@latest" or "yarn global add netlify-cli@latest"
47
47
  `);
48
48
  }
@@ -136,7 +136,7 @@ exports.checkZipSize = checkZipSize;
136
136
  const getProblematicUserRewrites = ({ redirects, basePath, }) => {
137
137
  const userRewrites = [];
138
138
  for (const redirect of redirects) {
139
- // This is the first of the plugin-generated redirects so we can stop checking
139
+ // This is the first of the runtime-generated redirects so we can stop checking
140
140
  if (redirect.from === `${basePath}/_next/static/*` && redirect.to === `/static/:splat` && redirect.status === 200) {
141
141
  break;
142
142
  }
@@ -159,7 +159,7 @@ const warnForProblematicUserRewrites = ({ redirects, basePath, }) => {
159
159
  return;
160
160
  }
161
161
  console.log((0, chalk_1.yellowBright)((0, outdent_1.outdent) `
162
- You have the following Netlify rewrite${userRewrites.length === 1 ? '' : 's'} that might cause conflicts with the Next.js plugin:
162
+ You have the following Netlify rewrite${userRewrites.length === 1 ? '' : 's'} that might cause conflicts with the Next.js Runtime:
163
163
 
164
164
  ${(0, chalk_1.reset)(userRewrites.map(({ from, to, status }) => `- ${from} ${to} ${status}`).join('\n'))}
165
165
 
package/lib/index.js CHANGED
@@ -20,7 +20,7 @@ const plugin = {
20
20
  const { publish } = netlifyConfig.build;
21
21
  if ((0, utils_1.shouldSkip)()) {
22
22
  await (0, cache_1.restoreCache)({ cache, publish });
23
- console.log('Not running Essential Next.js plugin');
23
+ console.log('Not running Next Runtime');
24
24
  if ((0, fs_extra_1.existsSync)((0, path_1.join)(constants.INTERNAL_FUNCTIONS_SRC, constants_1.HANDLER_FUNCTION_NAME))) {
25
25
  console.log(`Please ensure you remove any generated functions from ${constants.INTERNAL_FUNCTIONS_SRC}`);
26
26
  }
@@ -109,7 +109,7 @@ const plugin = {
109
109
  await (0, cache_1.saveCache)({ cache, publish });
110
110
  if ((0, utils_1.shouldSkip)()) {
111
111
  status.show({
112
- title: 'Essential Next.js plugin did not run',
112
+ title: 'Next Runtime did not run',
113
113
  summary: `Next cache was stored, but all other functions were skipped because ${process.env.NETLIFY_NEXT_PLUGIN_SKIP
114
114
  ? `NETLIFY_NEXT_PLUGIN_SKIP is set`
115
115
  : `NEXT_PLUGIN_FORCE_RUN is set to ${process.env.NEXT_PLUGIN_FORCE_RUN}`}`,
package/manifest.yml CHANGED
@@ -1 +1 @@
1
- name: netlify-plugin-nextjs-experimental
1
+ name: netlify-next-runtime-experimental
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/plugin-nextjs",
3
- "version": "4.16.0",
3
+ "version": "4.17.1-runtime.0",
4
4
  "description": "Run Next.js seamlessly on Netlify",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -9,8 +9,8 @@
9
9
  "manifest.yml"
10
10
  ],
11
11
  "dependencies": {
12
- "@netlify/functions": "^1.1.0",
13
- "@netlify/ipx": "^1.2.1",
12
+ "@netlify/functions": "^1.2.0",
13
+ "@netlify/ipx": "^1.2.2",
14
14
  "@vercel/node-bridge": "^2.1.0",
15
15
  "chalk": "^4.1.2",
16
16
  "fs-extra": "^10.0.0",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@delucis/if-env": "^1.1.2",
31
- "@netlify/build": "^27.11.4",
31
+ "@netlify/build": "^27.14.0",
32
32
  "@types/fs-extra": "^9.0.13",
33
33
  "@types/jest": "^27.4.1",
34
34
  "@types/node": "^17.0.25",
@@ -61,4 +61,4 @@
61
61
  "engines": {
62
62
  "node": ">=12.0.0"
63
63
  }
64
- }
64
+ }