I have Next js project with "next-i18next": "11.0.0". Next-i18next use req.headers.host for detecting lang by server. The localhost build is working, but when I launch the app inside docker I get req.headers.host: '0.0.0.0' or localhost.
next.config.js:
const { i18n } = require('./next-i18next.config')
module.exports = {
i18n,
}
next-i18next.config.js:
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'de'],
localeDetection: false,
domains: [{
domain: 'example.de',
defaultLocale: 'de',
}, {
domain: 'example.en',
defaultLocale: 'en',
}],
},
}