Open myabeaver opened 1 year ago
We added a env variable for this https://github.com/aralroca/next-translate#13-how-to-use-next-translate-in-a-mono-repo
It should work
@aralroca This is not suitable for our use case since it does not fallback to process.cwd()
(require('pkg-dir')
) gets resolved.
@myasteiner feel free to PR 👌
@aralroca I've created two PR's:
@aralroca Thank you for your time
What version of this package are you using?
next-translate@1.6.0
(includesnext-translate-plugin
)What problem do you want to solve?
We use Nx to run our monorepo. Nx has made an adjustment in version 16.3.2 that causes the current working directory to dynamically adjust depending on the project. We are therefore forced to adjust the
pkgDir
(used to create thebasePath
) to'.'
respectively the current working directory (process.cwd()
).What do you think is the correct solution to this problem?
Add a configuration option to NextConfig, such as
nextTranslate
. such as:Are you willing to submit a pull request to implement this change?
Yes