-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next-translate overrides next config when passed a config function #4
Comments
Feel free to PR to adapt this config property https://github.com/aralroca/next-translate/blob/master/src/plugin/index.ts#L5 |
any updates? Faced with same problem when adding next-translate plugin to next.config next-translate plugin overrides nextConfig
|
This looks like a different error. We are supporting Next.js configuration and rewrites should work, but remember that adding the locales these rewrites should be adapted to the locales. You should add |
What version of this package are you using?
1.6.0
What operating system, Node.js, and npm version?
linux, node 16, npm 8
What happened?
the next config can either be an object:
or a (async) function:
both examples are from the next documentation.
When passing a function to next-translate tho, it replaces that function with an object, discarding all the previous content.
I prepared a minimal reproduction here.
What did you expect to happen?
I expected the config to be extended either way.
Other config wrappers, like @sentry/nextjs, work like that.
Are you willing to submit a pull request to fix this bug?
If this is confirmed indeed a bug, I give it a try.
The text was updated successfully, but these errors were encountered: