You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.3 KiB
68 lines
1.3 KiB
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
images: {
|
|
remotePatterns: [
|
|
// OSS 图片域名
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'oss.wsdns.cn',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'http',
|
|
hostname: 'oss.wsdns.cn',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
// API 服务器图片
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'cms-api.websoft.top',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'http',
|
|
hostname: 'cms-api.websoft.top',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
// 常见的图片 CDN 域名
|
|
{
|
|
protocol: 'https',
|
|
hostname: '*.aliyuncs.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '*.qiniudn.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '*.qiniu.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
// 本地开发
|
|
{
|
|
protocol: 'http',
|
|
hostname: 'localhost',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'localhost',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|