nextload/next.config.mjs
tobias 1b5f02637c
Some checks failed
continuous-integration/drone/push Build is failing
Make posts page dynamic route
2024-06-25 22:19:08 +02:00

29 lines
657 B
JavaScript

import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const nextConfig = {
// Your Next.js config here
experimental: {
reactCompiler: false,
},
output: 'standalone',
env: {
PORT: process.env.PORT,
HOSTNAME: process.env.HOSTNAME,
},
// Disable minification & chunking for debugging
webpack(config, { dev }) {
const debug = true
config.optimization.minimize = debug
config.optimization.splitChunks = {
cacheGroups: {
default: debug,
},
}
config.optimization.runtimeChunk = debug
return config
},
}
export default withPayload(nextConfig)