import { withPayload } from '@payloadcms/next/withPayload' import type { NextConfig } from 'next' const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: 'http', hostname: 'localhost' }, { protocol: 'http', hostname: '193.124.91.99' }, { protocol: 'http', hostname: '161.104.59.37' }, { protocol: 'https', hostname: 'www.monikiweb.ru' }, { protocol: 'https', hostname: 'images.unsplash.com' }, ], }, } export default withPayload(nextConfig)