We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce099f9 commit 3b6d293Copy full SHA for 3b6d293
src/helpers/config.js
@@ -83,7 +83,7 @@ exports.generateRedirects = async ({ netlifyConfig, basePath, i18n }) => {
83
// These can be ignored, as they're static files handled by the CDN
84
return
85
}
86
- if (i18n.defaultLocale && route.startsWith(`/${i18n.defaultLocale}/`)) {
+ if (i18n?.defaultLocale && route.startsWith(`/${i18n.defaultLocale}/`)) {
87
route = route.slice(i18n.defaultLocale.length + 1)
88
89
hasIsr = true
0 commit comments