This repository has no description
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */const nextConfig = { trailingSlash: true, images: { localPatterns: [ { pathname: '/api/media/file/**' }, { pathname: '/images/**' }, ], }, // Packages with Cloudflare Workers (workerd) specific code // Read more: https://opennext.js.org/cloudflare/howtos/workerd serverExternalPackages: ['jose', 'pg-cloudflare'],
// Your Next.js config here webpack: (webpackConfig: any) => { webpackConfig.resolve.extensionAlias = { '.cjs': ['.cts', '.cjs'], '.js': ['.ts', '.tsx', '.js', '.jsx'], '.mjs': ['.mts', '.mjs'], }
return webpackConfig },}
export default withPayload(nextConfig, { devBundleServerPackages: false })