2024-04-10 21:43:51 +00:00
|
|
|
import { withPayload } from '@payloadcms/next/withPayload'
|
2024-03-06 21:18:34 +00:00
|
|
|
|
|
|
|
/** @type {import('next').NextConfig} */
|
2024-03-10 22:14:28 +00:00
|
|
|
const nextConfig = {
|
2024-05-23 17:52:26 +00:00
|
|
|
experimental: {
|
2024-06-14 20:35:28 +00:00
|
|
|
reactCompiler: false,
|
|
|
|
},
|
|
|
|
output: 'standalone',
|
2024-06-18 06:28:50 +00:00
|
|
|
env: {
|
2024-06-18 06:30:03 +00:00
|
|
|
PORT: process.env.PORT,
|
|
|
|
HOSTNAME: process.env.HOSTNAME,
|
2024-06-18 06:28:50 +00:00
|
|
|
},
|
2024-06-26 09:20:50 +00:00
|
|
|
// Disable minification & chunking for debugging
|
2024-07-05 20:24:10 +00:00
|
|
|
webpack(config, { dev }) {
|
2024-06-26 09:20:50 +00:00
|
|
|
config.optimization.minimize = false
|
|
|
|
config.optimization.splitChunks = {
|
|
|
|
cacheGroups: {
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
config.optimization.runtimeChunk = false
|
|
|
|
return config
|
2024-07-05 20:24:10 +00:00
|
|
|
},
|
2024-03-10 22:14:28 +00:00
|
|
|
}
|
2024-03-06 21:18:34 +00:00
|
|
|
|
2024-03-10 22:14:28 +00:00
|
|
|
export default withPayload(nextConfig)
|