1
0
Fork 0
freesewing/sites/org/next.config.mjs
2024-02-17 19:55:56 +01:00

37 lines
833 B
JavaScript

import configBuilder from '../shared/config/next.mjs'
import i18nConfig from './next-i18next.config.js'
import { banner } from '../../scripts/banner.mjs'
import withBundleAnalyzer from '@next/bundle-analyzer'
let config = configBuilder({ site: 'org' })
config.i18n = i18nConfig.i18n
config.rewrites = async () => {
return [
{
source: '/blog',
destination: '/blog/page/1',
},
{
source: '/showcase',
destination: '/showcase/page/1',
},
{
source: '/sets',
destination: '/docs/about/site/sets',
},
]
}
// Say hi
console.log(banner + '\n')
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)
export default config