next.config.ts 592 B

123456789101112131415161718192021222324252627282930
  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. },
  14. experimental: {
  15. serverActions: {
  16. bodySizeLimit: '1000mb',
  17. },
  18. },
  19. async rewrites() {
  20. return [
  21. {
  22. source: "/installHook.js.map", // the request that raises 404
  23. destination: "/404", // serve a silent 404 response
  24. },
  25. ];
  26. },
  27. };
  28. export default nextConfig;