Skip to content

perf: next.config.ts build statistics plugin runs unconditionally #485

Description

@nanaf6203-bit

Summary

next.config.ts includes a BuildStatsPlugin that runs in production builds and may emit a .next/ analysis payload — overhead around 5%.

Affected area

next.config.ts, line ~145

Steps to reproduce

Inspect the plugin — console.log(stats) runs for every build.

Expected behaviour

Disable the plugin in production; enable only when ANALYZE=true.

Acceptance criteria

  • Plugin gated by environment flag.
  • Build logs are quiet without ANALYZE.
  • Document the new behavior in README.

Filed automatically as part of the PropChain code-review sweep.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdevopsCI/CD, build, scripts, infraperformancePerformance / bundle / runtimepriority/p3P3 — nice to have

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions