Skip to content

fix(next): don't force next build for other subcommands#2846

Closed
ErezAmihud wants to merge 1 commit into
rtk-ai:developfrom
ErezAmihud:bugfix/issue-2840
Closed

fix(next): don't force next build for other subcommands#2846
ErezAmihud wants to merge 1 commit into
rtk-ai:developfrom
ErezAmihud:bugfix/issue-2840

Conversation

@ErezAmihud

Copy link
Copy Markdown

Summary

rtk next dev/rtk npx next dev always ran next build regardless of the requested subcommand, silently turning dev, start, lint, etc. into a build. Only build (or no subcommand) now routes through the build-output filter; anything else runs unfiltered passthrough.

Fixes #2840

Test plan

I added tests for the commands and ran it manually to check it works

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

`rtk next dev`/`rtk npx next dev` always ran `next build` regardless
of the requested subcommand, silently turning `dev`, `start`, `lint`,
etc. into a build. Only build (or no subcommand) now routes through
the build-output filter; anything else runs unfiltered passthrough.

Fixes rtk-ai#2840

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jul 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ErezAmihud

Copy link
Copy Markdown
Author

Not the "correct" solution to the problem. The problem lies in the npx rewrite rules. see #2854

@ErezAmihud ErezAmihud closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running npx next dev does npx next build instead

2 participants