next.config.ts 631 B

12345678910111213141516171819202122232425262728293031
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. eslint: {
  4. ignoreDuringBuilds: true, // 临时禁用构建时的 ESLint 检查
  5. },
  6. images: {
  7. remotePatterns: [
  8. {
  9. protocol: "http",
  10. hostname: "192.168.124.9",
  11. port: "8080",
  12. pathname: "/uploads/**",
  13. },
  14. {
  15. protocol: "http",
  16. hostname: "localhost",
  17. port: "8080",
  18. pathname: "/uploads/**",
  19. },
  20. {
  21. protocol: "http",
  22. hostname: "127.0.0.1",
  23. port: "8080",
  24. pathname: "/uploads/**",
  25. },
  26. ],
  27. },
  28. };
  29. export default nextConfig;