Skip to content

Commit

Permalink
revert #2084
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Feb 2, 2023
1 parent a75c352 commit c6ccf41
Show file tree
Hide file tree
Showing 3 changed files with 8 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.4

- revert #2084

## 13.1.3

- another code snippet for #2084 to try to fix for dynamic pages
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ For example, if you want to use `{` and `}` the config would look like this:
}
```

<!--
#### Custom `next-i18next.config.js` path
If you want to change the default config path, you can set the environment variable `I18NEXT_DEFAULT_CONFIG_PATH`.
Expand Down Expand Up @@ -356,6 +357,7 @@ module.exports = {
```
This means that the i18n configuration file will be in the same directory as `next.config.js` and it doesn't matter where your current working directory is. This helps for example for `nx` when you have monorepo and start your application from project root but the application is in `apps/{appName}`.
-->

## Notes

Expand Down
3 changes: 2 additions & 1 deletion src/serverSideTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const serverSideTranslations = async (
}

let userConfig = configOverride
const configPath = path.resolve(process.env.I18NEXT_DEFAULT_CONFIG_PATH || DEFAULT_CONFIG_PATH)
// const configPath = path.resolve(process.env.I18NEXT_DEFAULT_CONFIG_PATH || DEFAULT_CONFIG_PATH)
const configPath = path.resolve(DEFAULT_CONFIG_PATH)

if (
!userConfig &&
Expand Down

0 comments on commit c6ccf41

Please sign in to comment.