/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  images: {
    // 后端服务端口由 server/.env 决定，默认允许本机后端与常见图片占位服务
    remotePatterns: [
      { protocol: 'http',  hostname: 'localhost', port: '3000' },
      { protocol: 'http',  hostname: 'localhost', port: '3001' },
      { protocol: 'https', hostname: 'picsum.photos' },
      { protocol: 'https', hostname: '**' },
    ],
  },
};

module.exports = nextConfig;
