@netlify/plugin-nextjs 4.1.3 → 4.2.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.
- package/README.md +8 -0
- package/lib/templates/getHandler.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -85,6 +85,14 @@ you can remove it. Alternatively you can
|
|
|
85
85
|
support. See [`demos/next-export`](https://github.com/netlify/netlify-plugin-nextjs/tree/main/demos/next-export) for an
|
|
86
86
|
example.
|
|
87
87
|
|
|
88
|
+
## Generated functions
|
|
89
|
+
|
|
90
|
+
This plugin works by generating three Netlify functions that handle requests that haven't been pre-rendered. These are
|
|
91
|
+
`___netlify-handler` (for SSR and API routes), `___netlify-odb-handler` (for ISR and fallback routes), and `_ipx` (for
|
|
92
|
+
images). You can see the requests for these in [the function logs](https://docs.netlify.com/functions/logs/). For ISR
|
|
93
|
+
and fallback routes you will not see any requests that are served from the edge cache, just actual rendering requests.
|
|
94
|
+
These are all internal functions, so you won't find them in your site's own functions directory.
|
|
95
|
+
|
|
88
96
|
## Feedback
|
|
89
97
|
|
|
90
98
|
If you think you have found a bug in the plugin,
|
|
@@ -81,6 +81,7 @@ const makeHandler = () =>
|
|
|
81
81
|
multiValueHeaders['cache-control'] = ['public, max-age=0, must-revalidate'];
|
|
82
82
|
}
|
|
83
83
|
multiValueHeaders['x-render-mode'] = [requestMode];
|
|
84
|
+
console.log(`[${event.httpMethod}] ${event.path} (${requestMode === null || requestMode === void 0 ? void 0 : requestMode.toUpperCase()})`);
|
|
84
85
|
return {
|
|
85
86
|
...result,
|
|
86
87
|
multiValueHeaders,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Run Next.js seamlessly on Netlify",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@babel/core": "^7.15.8",
|
|
75
75
|
"@babel/preset-env": "^7.15.8",
|
|
76
76
|
"@babel/preset-typescript": "^7.16.0",
|
|
77
|
-
"@netlify/build": "^26.1.
|
|
78
|
-
"@netlify/eslint-config-node": "^4.1.
|
|
77
|
+
"@netlify/build": "^26.1.3",
|
|
78
|
+
"@netlify/eslint-config-node": "^4.1.3",
|
|
79
79
|
"@testing-library/cypress": "^8.0.1",
|
|
80
80
|
"@types/fs-extra": "^9.0.13",
|
|
81
81
|
"@types/jest": "^27.0.2",
|