Skip to content

Commit

Permalink
different code snippet for #2084 to try to fix for dynamic pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Feb 2, 2023
1 parent dadcb8f commit 7b1b2dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 13.1.2

- different code snippet for #2084 to try to fix for dynamic pages

## 13.1.1

- log config path if no config found
Expand Down
2 changes: 1 addition & 1 deletion src/serverSideTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { globalI18n } from './appWithTranslation'
import { UserConfig, SSRConfig } from './types'
import { getFallbackForLng, unique } from './utils'

const { I18NEXT_DEFAULT_CONFIG_PATH: DEFAULT_CONFIG_PATH = './next-i18next.config.js' } = process.env
const DEFAULT_CONFIG_PATH = process.env.I18NEXT_DEFAULT_CONFIG_PATH || './next-i18next.config.js'

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

0 comments on commit 7b1b2dc

Please sign in to comment.