2022-06-17 12:02:09 +02:00
|
|
|
import configBuilder from '../shared/config/next.mjs'
|
2022-05-20 15:34:08 +02:00
|
|
|
import i18nConfig from './next-i18next.config.js'
|
2022-06-19 16:09:53 +02:00
|
|
|
import { banner } from '../../scripts/banner.mjs'
|
2022-10-03 00:14:11 +02:00
|
|
|
import withBundleAnalyzer from '@next/bundle-analyzer'
|
2021-12-10 09:56:19 +01:00
|
|
|
|
2023-05-16 10:34:13 +02:00
|
|
|
let config = configBuilder({ site: 'dev' })
|
2022-05-20 15:34:08 +02:00
|
|
|
config.i18n = i18nConfig.i18n
|
2022-07-12 20:09:17 +02:00
|
|
|
|
|
|
|
// Say hi
|
2022-10-03 17:49:40 +02:00
|
|
|
console.log(banner + '\n')
|
2022-02-13 16:00:00 +01:00
|
|
|
|
2022-10-03 00:14:11 +02:00
|
|
|
config.eslint = {
|
|
|
|
// Ignore linter for now
|
2022-10-03 17:49:40 +02:00
|
|
|
ignoreDuringBuilds: true,
|
2022-10-03 00:14:11 +02:00
|
|
|
}
|
2022-06-12 22:37:04 +02:00
|
|
|
|
2022-10-03 17:49:40 +02:00
|
|
|
// To run the bundle analyzer, run:
|
|
|
|
// ANALYZE=true yarn build
|
|
|
|
if (process.env.ANALYZE) config = withBundleAnalyzer(config)(config)
|
2022-06-12 22:37:04 +02:00
|
|
|
|
2022-02-13 16:00:00 +01:00
|
|
|
export default config
|