@netlify/plugin-nextjs 4.0.0-beta.3 → 4.0.0-beta.4
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.
- package/README.md +3 -0
- package/lib/helpers/config.js +4 -0
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
</a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
+
## What's new in this version
|
|
18
|
+
|
|
19
|
+
Version 4 is a complete rewrite of the Essential Next.js plugin. For full details of everything that's new, see [the v4 release notes](https://github.com/netlify/netlify-plugin-nextjs/blob/main/docs/release-notes/v4.md)
|
|
17
20
|
|
|
18
21
|
## Installing the beta
|
|
19
22
|
|
package/lib/helpers/config.js
CHANGED
|
@@ -111,5 +111,9 @@ exports.configureHandlerFunctions = ({ netlifyConfig, publish, ignore = [] }) =>
|
|
|
111
111
|
if (sharpRoot) {
|
|
112
112
|
netlifyConfig.functions[functionName].included_files.push(`!${sharpRoot}/**/*`);
|
|
113
113
|
}
|
|
114
|
+
const electronRoot = resolveModuleRoot('electron');
|
|
115
|
+
if (electronRoot) {
|
|
116
|
+
netlifyConfig.functions[functionName].included_files.push(`!${electronRoot}/**/*`);
|
|
117
|
+
}
|
|
114
118
|
});
|
|
115
119
|
};
|
package/lib/index.js
CHANGED
|
@@ -37,9 +37,9 @@ module.exports = {
|
|
|
37
37
|
i18n,
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
|
-
async onPostBuild({ netlifyConfig, utils: { cache }, constants }) {
|
|
40
|
+
async onPostBuild({ netlifyConfig, utils: { cache }, constants: { FUNCTIONS_DIST } }) {
|
|
41
41
|
await saveCache({ cache, publish: netlifyConfig.build.publish });
|
|
42
|
-
await checkZipSize(join(
|
|
42
|
+
await checkZipSize(join(FUNCTIONS_DIST, `${ODB_FUNCTION_NAME}.zip`));
|
|
43
43
|
},
|
|
44
44
|
onEnd() {
|
|
45
45
|
logBetaMessage();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.4",
|
|
4
4
|
"description": "Run Next.js seamlessly on Netlify",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/netlify/netlify-plugin-nextjs#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@netlify/functions": "^0.
|
|
55
|
+
"@netlify/functions": "^0.8.0",
|
|
56
56
|
"@netlify/ipx": "^0.0.7",
|
|
57
57
|
"@vercel/node": "^1.11.2-canary.4",
|
|
58
58
|
"chalk": "^4.1.2",
|