Skip to content

Commit

Permalink
fix (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-ondrej authored Sep 4, 2023
1 parent 57eae60 commit ada15cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serverSideTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (process.env.I18NEXT_DEFAULT_CONFIG_PATH) {
DEFAULT_CONFIG_PATH = process.env.I18NEXT_DEFAULT_CONFIG_PATH
}

type ArrayElementOrSelf<T> = T extends Array<infer U> ? U[] : T[]
type ArrayElementOrSelf<T> = T extends ReadonlyArray<infer U> ? U[] : T[]

export const serverSideTranslations = async (
initialLocale: string,
Expand Down

0 comments on commit ada15cf

Please sign in to comment.