@netlify/plugin-nextjs 4.1.2 → 4.1.3
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/redirects.js +2 -2
- package/package.json +3 -3
package/lib/helpers/redirects.js
CHANGED
|
@@ -90,8 +90,8 @@ const generateRedirects = async ({ netlifyConfig, nextConfig: { i18n, basePath,
|
|
|
90
90
|
...utils_1.redirectsForNextRoute({ route, basePath, to: constants_1.ODB_FUNCTION_PATH, force: true, buildId, i18n: null }));
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
// Add rewrites for all static SSR routes
|
|
94
|
-
staticRoutes.forEach((route) => {
|
|
93
|
+
// Add rewrites for all static SSR routes. This is Next 12+
|
|
94
|
+
staticRoutes === null || staticRoutes === void 0 ? void 0 : staticRoutes.forEach((route) => {
|
|
95
95
|
if (staticRoutePaths.has(route.page) || utils_1.isApiRoute(route.page)) {
|
|
96
96
|
// Prerendered static routes are either handled by the CDN or are ISR
|
|
97
97
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/plugin-nextjs",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
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.1",
|
|
78
|
+
"@netlify/eslint-config-node": "^4.1.2",
|
|
79
79
|
"@testing-library/cypress": "^8.0.1",
|
|
80
80
|
"@types/fs-extra": "^9.0.13",
|
|
81
81
|
"@types/jest": "^27.0.2",
|