Skip to content

Option to disable ReduxDevtools connection in builds #70441

Closed
@shuding

Description

Discussed in #69436

Originally posted by nicole0707 August 29, 2024

Goals

Currently Next.js sends the payload and state of server actions with Redux DevTools by default in production:

However, We encountered an issue when attempting to serialise BigInt in Redux DevTools(related issue). The issue breaks our apps in production if users have Redux DevTools installed. There is no estimated time for fixing the issue.

Non-Goals

No response

Background

Next.js could provide developers with the flexibility to enable Redux DevTools on demand based on the different environments, such as development or production.

Proposal

My proposal is to add a new environment variable for enable useReducerWithReduxDevtools.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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