payload is working! must use webpack
This commit is contained in:
18
apps/next/src/payload.config.ts
Normal file
18
apps/next/src/payload.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { postgresAdapter } from '@payloadcms/db-postgres';
|
||||
import { lexicalEditor } from '@payloadcms/richtext-lexical';
|
||||
import { buildConfig } from 'payload';
|
||||
import sharp from 'sharp';
|
||||
|
||||
import { env } from './env';
|
||||
|
||||
export default buildConfig({
|
||||
editor: lexicalEditor(),
|
||||
collections: [],
|
||||
secret: env.PAYLOAD_SECRET ?? '',
|
||||
db: postgresAdapter({
|
||||
pool: {
|
||||
connectionString: env.PAYLOAD_DB_URL,
|
||||
},
|
||||
}),
|
||||
sharp,
|
||||
});
|
||||
Reference in New Issue
Block a user