1
0
Fork 0
freesewing/sites/org/next.config.mjs

39 lines
887 B
JavaScript
Raw Normal View History

import configBuilder from '../shared/config/next.mjs'
2022-05-21 19:26:43 +02:00
import i18nConfig from './next-i18next.config.js'
import { banner } from '../../scripts/banner.mjs'
import withBundleAnalyzer from '@next/bundle-analyzer'
import { jargon } from '../shared/jargon/index.mjs'
let config = configBuilder({ site: 'org', jargon })
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
// Say hi
console.log(banner + '\n')
2022-05-21 19:26:43 +02:00
config.eslint = {
// Ignore linter for now
ignoreDuringBuilds: true,
}
// 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