next.config.ts 600 B

123456789101112131415161718192021
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. /* config options here */
  4. images: {
  5. remotePatterns: [
  6. {
  7. protocol: 'https',
  8. hostname: '**', // 通配符,匹配所有的 hostname
  9. pathname: '/**', // 通配符,匹配所有路径
  10. },
  11. {
  12. protocol: 'http',
  13. hostname: '**', // 通配符,匹配所有的 hostname
  14. pathname: '/**', // 通配符,匹配所有路径
  15. },
  16. ],
  17. },
  18. };
  19. export default nextConfig;