@netlify/plugin-nextjs 4.0.0-beta.10 → 4.0.0-beta.11

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.
@@ -60,7 +60,7 @@ exports.generateRedirects = async ({ netlifyConfig, basePath, i18n }) => {
60
60
  // These can be ignored, as they're static files handled by the CDN
61
61
  return;
62
62
  }
63
- if (i18n.defaultLocale && route.startsWith(`/${i18n.defaultLocale}/`)) {
63
+ if ((i18n === null || i18n === void 0 ? void 0 : i18n.defaultLocale) && route.startsWith(`/${i18n.defaultLocale}/`)) {
64
64
  route = route.slice(i18n.defaultLocale.length + 1);
65
65
  }
66
66
  hasIsr = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/plugin-nextjs",
3
- "version": "4.0.0-beta.10",
3
+ "version": "4.0.0-beta.11",
4
4
  "description": "Run Next.js seamlessly on Netlify",
5
5
  "main": "lib/index.js",
6
6
  "files": [
package/lib/.DS_Store DELETED
Binary file