2022-12-24 22:56:58 +01:00
|
|
|
import configBuilder from '../shared/config/next.mjs'
|
2022-05-21 19:26:43 +02:00
|
|
|
import i18nConfig from './next-i18next.config.js'
|
2022-12-24 22:56:58 +01:00
|
|
|
import { banner } from '../../scripts/banner.mjs'
|
|
|
|
import withBundleAnalyzer from '@next/bundle-analyzer'
|
2022-01-02 17:16:15 +01:00
|
|
|
|
2022-12-24 22:56:58 +01:00
|
|
|
let config = configBuilder('org')
|
|
|
|
config.i18n = i18nConfig.i18n
|
2022-05-21 19:26:43 +02:00
|
|
|
|
2022-12-24 22:56:58 +01:00
|
|
|
// Say hi
|
|
|
|
console.log(banner + '\n')
|
2022-05-21 19:26:43 +02:00
|
|
|
|
2022-12-24 22:56:58 +01:00
|
|
|
config.eslint = {
|
|
|
|
// Ignore linter for now
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
}
|
2022-06-12 22:37:04 +02:00
|
|
|
|
2022-12-24 22:56:58 +01:00
|
|
|
// To run the bundle analyzer, run:
|
|
|
|
// ANALYZE=true yarn build
|
|
|
|
if (process.env.ANALYZE) config = withBundleAnalyzer(config)(config)
|
2022-05-21 19:26:43 +02:00
|
|
|
|
|
|
|
export default config
|