We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f86a2 commit 0bc6fdeCopy full SHA for 0bc6fde
packages/runtime/src/helpers/utils.ts
@@ -197,14 +197,16 @@ export const redirectsForNextRouteWithData = ({
197
198
const routes = []
199
if (i18n?.locales?.length) {
200
- i18n.locales.flatMap((locale) =>
201
- paths.map((redirect) => ({
202
- from: `${basePath}${redirect}`,
203
- to,
204
- status,
205
- force,
206
- conditions: { Language: locale },
207
- })),
+ routes.push(
+ ...i18n.locales.flatMap((locale) =>
+ paths.map((redirect) => ({
+ from: `${basePath}${redirect}`,
+ to,
+ status,
+ force,
+ conditions: { Language: locale },
208
+ })),
209
+ ),
210
)
211
}
212
0 commit comments