nextload/next.config.mjs
tobias 95a00c63ea
All checks were successful
continuous-integration/drone/push Build is passing
Disable code obfuscation
2024-07-05 22:24:10 +02:00

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)