dev: make the dev server port configurable via OC_DEV_PORT - #9096
Open
julianjelfs wants to merge 2 commits into
Open
dev: make the dev server port configurable via OC_DEV_PORT#9096julianjelfs wants to merge 2 commits into
julianjelfs wants to merge 2 commits into
Conversation
build_dev.sh hardcoded OC_DEV_PORT=5001 and vite.config.ts hardcoded the port (used for both the http server and the HMR websocket), so a prepended OC_DEV_PORT was ignored. Both now respect a pre-set OC_DEV_PORT and default to 5001, making it possible to run a second dev server (eg. an app-store build on a different port) alongside the default one. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
julianjelfs
requested review from
hpeebles,
ivan-jukic and
megrogan
as code owners
July 16, 2026 09:02
|
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.
Small dev-tooling quality-of-life change (no product impact).
build_dev.shhardcodedexport OC_DEV_PORT=5001, andvite.config.tshardcodedconst port = 5001— used for both the HTTP server and the HMR WebSocket. So prependingOC_DEV_PORT=5002 npm run devwas silently ignored (both the source and its HMR socket still tried 5001).Both now read a pre-set
OC_DEV_PORTand default to 5001, so the default workflow is unchanged but you can run a second dev server on another port — e.g. anOC_APP_STORE=trueapp-store build alongside the normal web one:🤖 Generated with Claude Code