Skip to content

Conversation

@DarshanCode2005
Copy link
Contributor

Summary

This PR implements the --no-browser flag for the start studio command, allowing users to start the studio without automatically opening a browser window.

Additionally, it fixes a critical issue where the Studio server would hang or fail to load correctly because the CLI was not properly handling the Next.js "standalone" build output used by newer versions of @asyncapi/studio.

Changes

  • CLI Flags: Added --no-browser (alias -B is preserved but mapped to this new flag) to start studio.
  • UX: When --no-browser is used, the console output now shows a neutral "Studio is running at..." message instead of the imperative "Open this URL..." instruction.
  • Studio Implementation:
    • Refactored Studio.ts to support the Next.js standalone server
    • Implemented logic to copy missing static assets (/public and /static) to the standalone build directory to prevent 404 errors.

Testing

  • Run asyncapi start studio --no-browser -> Server starts, no browser opens, neutral log message shown.
  • Run asyncapi start studio -> Server starts, browser opens automatically.
  • Verified static assets load correctly (no 404s in console) when running the standalone build.

Related Issues

Closes #2001

Video Demo

https://drive.google.com/file/d/1xnaiEKIIHBIx5dS1Eydkj_QdJdpQoYRh/view?usp=sharing

@changeset-bot
Copy link

changeset-bot bot commented Feb 1, 2026

⚠️ No Changeset found

Latest commit: 08cc832

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2026

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

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] add --no-browser flag to start studio and fix standalone build compatibility

1 participant