Skip to content

Commit 3b832d1

Browse files
committed
fix: add null check
1 parent f02a7d7 commit 3b832d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/redirects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const generateRedirects = async ({
6363
})),
6464
)
6565

66-
if (i18n.localeDetection !== false) {
66+
if (i18n && i18n.localeDetection !== false) {
6767
netlifyConfig.redirects.push(...generateLocaleRedirects({ i18n, basePath, trailingSlash }))
6868
}
6969

0 commit comments

Comments
 (0)