mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 22:04:10 +00:00
- Update payload.config.ts with new collections, blocks, and globals - Configure i18n with DE/EN localization support - Add multi-tenant plugin configuration - Update ecosystem.config.cjs for PM2 - Regenerate payload-types.ts and importMap.js - Add prettier configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
814 B
JavaScript
31 lines
814 B
JavaScript
import { withPayload } from '@payloadcms/next/withPayload'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// Skip type checking during build (done separately in CI)
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
// Skip ESLint during build to save memory
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
// Reduce memory usage during build
|
|
experimental: {
|
|
// Use fewer workers for builds on low-memory systems
|
|
workerThreads: false,
|
|
cpus: 1,
|
|
},
|
|
// Your Next.js config here
|
|
webpack: (webpackConfig) => {
|
|
webpackConfig.resolve.extensionAlias = {
|
|
'.cjs': ['.cts', '.cjs'],
|
|
'.js': ['.ts', '.tsx', '.js', '.jsx'],
|
|
'.mjs': ['.mts', '.mjs'],
|
|
}
|
|
|
|
return webpackConfig
|
|
},
|
|
}
|
|
|
|
export default withPayload(nextConfig, { devBundleServerPackages: false })
|