Skip to content

Option to disable console (CLI terminal) clearing #3159

@ravinggenius

Description

@ravinggenius
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When developing an app, with or without a third-party server (express, for instance), the app should reload without "clearing" the terminal. When starting with next dev --preserve-log, the log should not be obscured. This option should also be available when starting programmatically with const app = next({ dev, preserveLog: true });.

Current Behavior

The log scrolls offscreen every time the app rebuilds.

Context

I will often start troubleshooting code with console.log. Having to take my hands off the keyboard to scroll back through the logs slows me down and breaks my flow.

Your Environment

Tech Version
next v4.1.1
node v8.7.0
OS macOS 10.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    UpstreamRelated to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions