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'
|
2023-07-04 20:23:07 +02:00
|
|
|
import { jargon } from '../shared/jargon/index.mjs'
|
2022-01-02 17:16:15 +01:00
|
|
|
|
2023-05-15 15:57:46 +02:00
|
|
|
let config = configBuilder({ site: 'org', jargon })
|
2022-12-24 22:56:58 +01:00
|
|
|
config.i18n = i18nConfig.i18n
|
2023-06-24 13:56:22 -05:00
|
|
|
config.rewrites = async () => {
|
2023-06-22 16:27:08 -05:00
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/blog',
|
|
|
|
destination: '/blog/page/1',
|
|
|
|
},
|
2023-06-22 16:32:49 -05:00
|
|
|
{
|
|
|
|
source: '/showcase',
|
|
|
|
destination: '/showcase/page/1',
|
|
|
|
},
|
2023-08-23 12:18:20 +02:00
|
|
|
{
|
|
|
|
source: '/sets',
|
|
|
|
destination: '/docs/site/sets',
|
|
|
|
},
|
2023-06-22 16:27:08 -05:00
|
|
|
]
|
|
|
|
}
|
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
|