20 lines
423 B
JavaScript
20 lines
423 B
JavaScript
const { withPayload } = require('./packages/next/src/withPayload')
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true',
|
|
})
|
|
|
|
module.exports = withBundleAnalyzer(
|
|
withPayload({
|
|
reactStrictMode: false,
|
|
async redirects() {
|
|
return [
|
|
{
|
|
destination: '/admin',
|
|
permanent: true,
|
|
source: '/',
|
|
},
|
|
]
|
|
},
|
|
}),
|
|
)
|