Skip to content

Issue: Deprecated Next.js Image Configuration & Console Statements #3727

@Abhineshhh

Description

@Abhineshhh

Description

The project is using the deprecated images.domains configuration in Next.js, which will be removed in future versions. Additionally, there are console.log statements in production code that should be removed.

Current Issues

  1. Deprecated Configuration Warning

    • File: next.config.js
    • Warning: The "images.domains" configuration is deprecated. Please use "images.remotePatterns" configuration instead.
  2. Console Statements in Production

    • File: pages/technology/index.tsx:13
    • File: pages/community/[slug].tsx:113
    • These statements increase bundle size and expose internal logic

Expected Behavior

  • Use modern remotePatterns API for image optimization
  • Clean production code without console statements
  • No deprecation warnings

Proposed Solution

  • Migrate images.domains to images.remotePatterns configuration
  • Remove all console.log statements from production code
  • Maintain existing image optimization functionality

Benefits:

  • Future-proof configuration
  • Smaller bundle size
  • Cleaner codebase

I'd like to work on this issue as part of my contribution to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions