我需要在我的next.config.js文件中导出多个模块。
现在我的文件是这样的:
const withImages = require('next-images')
const path = require('path')
module.exports = withImages({
esModule: false,
});我要说的是:
module.exports = {
i18n: {
locales: ['en-US', 'fr', 'nl-NL'],
defaultLocale: 'en-US',
},
}我可能需要添加更多的插件
发布于 2020-12-29 02:09:59
有很多方法可以做到这一点。我这样做了:
const withImages = require('next-images')
const path = require('path')
module.exports = withImages({
esModule: false,
i18n: {
locales: ['en-US', 'pt-BR', 'pt-PT', 'es-ES'],
defaultLocale: 'pt-BR',
},
});工作正常
https://stackoverflow.com/questions/65361505
复制相似问题