22 lines
449 B
JavaScript
22 lines
449 B
JavaScript
import withPayload from './packages/next/src/withPayload.js'
|
|
import bundleAnalyzer from '@next/bundle-analyzer'
|
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
})
|
|
|
|
export default withBundleAnalyzer(
|
|
withPayload({
|
|
reactStrictMode: false,
|
|
async redirects() {
|
|
return [
|
|
{
|
|
destination: '/admin',
|
|
permanent: true,
|
|
source: '/',
|
|
},
|
|
]
|
|
},
|
|
}),
|
|
)
|