import { withPayload } from '@payloadcms/next/withPayload' import type { NextConfig } from 'next' const nextConfig: NextConfig = { output: 'standalone', reactStrictMode: true, webpack: (config) => { config.watchOptions = { ...config.watchOptions, ignored: /node_modules|importMap\.js|\.next/, } return config }, images: { remotePatterns: [ { protocol: 'http', hostname: 'localhost', port: '3000', pathname: '/media/**', }, { protocol: 'https', hostname: 'shumiland.com.ua', pathname: '/media/**', }, ], }, } export default withPayload(nextConfig)