| 12345678910111213141516171819202122 |
- import { withPayload } from '@payloadcms/next/withPayload'
- /** @type {import('next').NextConfig} */
- const nextConfig = {
- // Your Next.js config here
- experimental: {
- serverActions: {
- bodySizeLimit: '50mb', // Increase limit for image uploads
- },
- },
- webpack: (webpackConfig) => {
- webpackConfig.resolve.extensionAlias = {
- '.cjs': ['.cts', '.cjs'],
- '.js': ['.ts', '.tsx', '.js', '.jsx'],
- '.mjs': ['.mts', '.mjs'],
- }
- return webpackConfig
- },
- }
- export default withPayload(nextConfig, { devBundleServerPackages: false })
|