Repository navigation
Conversation
3 tasks done
huntie
marked this pull request as ready for review
October 30, 2026 12:01
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
Migration of the remaining core dev server endpoints from
@react-native-community/cli-server-apiinto core (community-cli-plugin).This diff
Stop loading
createDevServerMiddlewarefrom@react-native-community/cli, and delete the implicit@react-native-community/clidependency, now that core serves every endpoint apps and tools use. The dev server no longer depends on the CLI at runtime.Paired with react-native-community/cli#2879, which removes the
cli-server-apipackage.Net changes
startno longer serves the CLI's index page,/systrace, or files under the watch folders by path.startno longer warns when@react-native-community/cliis missing.RCTBundleURLProvider'sresourceURLForResourceRoot:resourceName:resourceExtension:offlineBundle:builds a/<root>/<name>.<ext>URL thatstartno longer serves, since only the CLI's watch folder serving answered it. Nothing in React Native calls it. Update the dev support docs to match.Removed routes
GET /(index page)GET /package.json(watch folder file)/[metro-project]/,/assets/), and the DevTools frontend comes from/debugger-frontend.GET /Gemfile(outside Metro's source extensions)POST /systraceChangelog:
[General][Removed] - Dev server: Stop serving project files from watch folders (these should use
/[metro-project]/and/assets/instead), remove index and/systraceendpointsTest Plan
✅ 69 tests pass. Flow and ESLint clean.
End to end: RNTester on iPhone 18 Pro (iOS 27.0) against Metro on port 8088. Before: the previous commit in this stack, with the npm CLI (
21.0.0-alpha.1). After: this commit, withstartrun from a CLI build of the paired CLI change, which removescli-server-apiand thecreateDevServerMiddlewareexport.Removed routes:
GET /(index page)200HTML404GET /package.json(watch folder file)200404GET /Gemfile(outside Metro's source extensions)200404POST /systrace500:req.rawBodyis never set, so the write throws404/package.json, before/package.json, after/, before/, after404: no route serves project files by path404: no route answers/Everything else, after:
/statusanswers200with RNTester's project root.devMenubroadcast on/message(as thedkey sends) opens the Dev Menu;/reloadanswersOK;/eventsaccepts a connection./open-stack-frameforRNTesterAppShared.jsanswers200and launches$REACT_EDITORwith the file; for/etc/hosts,400.403./debugger-frontend/rn_fusebox.htmlanswers200, and/json/listlists the RNTester target./[metro-project]/js/RNTesterApp.ios.jsanswers200, and the source map embeds all 905 sources, so DevTools needs no project file by path./messagedevMenubroadcast on/message, as thedkey sends, opens the Dev MenuAlertExample.jsthrough the source map