Modify dockerfile
This commit is contained in:
@ -2,7 +2,6 @@ import { withPayload } from '@payloadcms/next/withPayload'
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// Your Next.js config here
|
||||
experimental: {
|
||||
reactCompiler: false,
|
||||
},
|
||||
@ -11,6 +10,17 @@ const nextConfig = {
|
||||
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)
|
||||
|
Reference in New Issue
Block a user