feat: payload cms
This commit is contained in:
@@ -8,8 +8,11 @@ import { nodemailerAdapter } from '@payloadcms/email-nodemailer';
|
||||
import { BlocksFeature } from '@payloadcms/richtext-lexical';
|
||||
import { payloadBlocks } from './src/payload/blocks/allBlocks';
|
||||
|
||||
// Disable sharp cache to prevent memory leaks in Docker
|
||||
sharp.cache(false);
|
||||
// Only disable sharp cache in production to prevent memory leaks.
|
||||
// In dev, the cache avoids 41s+ re-processing per image through VirtioFS.
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
sharp.cache(false);
|
||||
}
|
||||
|
||||
import { Users } from './src/payload/collections/Users';
|
||||
import { Media } from './src/payload/collections/Media';
|
||||
|
||||
Reference in New Issue
Block a user