update emailadapter
This commit is contained in:
755
pnpm-lock.yaml
generated
755
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,11 @@
|
||||
// storage-adapter-import-placeholder
|
||||
import { s3Storage } from '@payloadcms/storage-s3'
|
||||
import { mongooseAdapter } from '@payloadcms/db-mongodb'
|
||||
|
||||
import { resendAdapter } from '@payloadcms/email-resend'
|
||||
import sharp from 'sharp' // sharp-import
|
||||
import path from 'path'
|
||||
import { buildConfig, PayloadRequest } from 'payload'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
import { Categories } from './collections/Categories'
|
||||
import { Media } from './collections/Media'
|
||||
import { Pages } from './collections/Pages'
|
||||
@@ -66,6 +65,11 @@ export default buildConfig({
|
||||
collections: [Pages, Posts, Media, Categories, Users],
|
||||
cors: [getServerSideURL()].filter(Boolean),
|
||||
globals: [Header, Footer],
|
||||
email: resendAdapter({
|
||||
defaultFromAddress: 'noreply@ricenoodlestw.com',
|
||||
defaultFromName: '台東榕樹下米苔目',
|
||||
apiKey: process.env.RESEND_API_KEY || '',
|
||||
}),
|
||||
plugins: [
|
||||
...plugins,
|
||||
s3Storage({
|
||||
|
||||
Reference in New Issue
Block a user