next.config.ts 855 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. output: "standalone",
  4. images: {
  5. remotePatterns: [
  6. {
  7. protocol: 'https',
  8. hostname: 'gravatar.com',
  9. port: '',
  10. pathname: '/avatar/**',
  11. },
  12. {
  13. protocol: 'https',
  14. hostname: 'lh3.googleusercontent.com',
  15. port: '',
  16. pathname: '/**',
  17. },
  18. {
  19. protocol: 'https',
  20. hostname: 'googleusercontent.com',
  21. port: '',
  22. pathname: '/**',
  23. }
  24. ],
  25. },
  26. experimental: {
  27. serverActions: {
  28. bodySizeLimit: '1000mb',
  29. },
  30. },
  31. async rewrites() {
  32. return [
  33. {
  34. source: "/installHook.js.map", // the request that raises 404
  35. destination: "/404", // serve a silent 404 response
  36. },
  37. ];
  38. },
  39. };
  40. export default nextConfig;