27 lines
604 B
JavaScript
27 lines
604 B
JavaScript
import { withPayload } from '@payloadcms/next/withPayload'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
reactCompiler: false,
|
|
},
|
|
output: 'standalone',
|
|
env: {
|
|
PORT: process.env.PORT,
|
|
HOSTNAME: process.env.HOSTNAME,
|
|
},
|
|
// Disable minification & chunking for debugging
|
|
webpack(config, { dev }) {
|
|
config.optimization.minimize = false
|
|
config.optimization.splitChunks = {
|
|
cacheGroups: {
|
|
default: false,
|
|
},
|
|
}
|
|
config.optimization.runtimeChunk = false
|
|
return config
|
|
},
|
|
}
|
|
|
|
export default withPayload(nextConfig)
|