website-01/next.config.js

16 lines
501 B
JavaScript
Raw Permalink Normal View History

2026-06-22 14:43:46 +08:00
/** @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;