next.config.ts 510 B

12345678910111213141516171819202122232425
  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. async rewrites() {
  15. return [
  16. {
  17. source: "/installHook.js.map", // the request that raises 404
  18. destination: "/404", // serve a silent 404 response
  19. },
  20. ];
  21. },
  22. };
  23. export default nextConfig;