@netlify/plugin-nextjs 4.39.3 → 4.39.4-fix-edge-runtime-on-lambda
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/lib/helpers/config.js +1 -0
- package/lib/templates/server.js +7 -0
- package/package.json +2 -2
package/lib/helpers/config.js
CHANGED
|
@@ -105,6 +105,7 @@ const configureHandlerFunctions = async ({ netlifyConfig, publish, ignore = [],
|
|
|
105
105
|
(_b = netlifyConfig.functions[functionName]).included_files || (_b.included_files = []);
|
|
106
106
|
netlifyConfig.functions[functionName].included_files.push(...includedFiles.map(escapeGlob));
|
|
107
107
|
};
|
|
108
|
+
console.log({ ssrLambdas });
|
|
108
109
|
if (ssrLambdas.length === 0) {
|
|
109
110
|
configureFunction(constants_1.HANDLER_FUNCTION_NAME);
|
|
110
111
|
configureFunction(constants_1.ODB_FUNCTION_NAME);
|
package/lib/templates/server.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.getNetlifyNextServer = void 0;
|
|
|
4
4
|
// eslint-disable-next-line n/no-deprecated-api -- this is what Next.js uses as well
|
|
5
5
|
const url_1 = require("url");
|
|
6
6
|
const handlerUtils_1 = require("./handlerUtils");
|
|
7
|
+
// eslint-disable-next-line max-lines-per-function
|
|
7
8
|
const getNetlifyNextServer = (NextServer) => {
|
|
8
9
|
class NetlifyNextServer extends NextServer {
|
|
9
10
|
constructor(options, netlifyConfig) {
|
|
@@ -91,6 +92,12 @@ const getNetlifyNextServer = (NextServer) => {
|
|
|
91
92
|
throw error;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
// eslint-disable-next-line class-methods-use-this, require-await
|
|
96
|
+
async runMiddleware() {
|
|
97
|
+
return {
|
|
98
|
+
finished: false,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
94
101
|
getNetlifyPathsForRoute(route) {
|
|
95
102
|
const { i18n } = this.nextConfig;
|
|
96
103
|
const { routes, dynamicRoutes } = this.netlifyPrerenderManifest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.39.
|
|
3
|
+
"version": "4.39.4-fix-edge-runtime-on-lambda",
|
|
4
4
|
"description": "Run Next.js seamlessly on Netlify",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@delucis/if-env": "^1.1.2",
|
|
40
|
-
"@netlify/build": "^29.
|
|
40
|
+
"@netlify/build": "^29.18.0",
|
|
41
41
|
"@types/fs-extra": "^9.0.13",
|
|
42
42
|
"@types/jest": "^27.4.1",
|
|
43
43
|
"@types/merge-stream": "^1.1.2",
|