Skip to content

Customize ports used by Jaspr during serving#13389

Merged
sfshaza2 merged 1 commit into
mainfrom
misc/jaspr-port-customization
May 17, 2026
Merged

Customize ports used by Jaspr during serving#13389
sfshaza2 merged 1 commit into
mainfrom
misc/jaspr-port-customization

Conversation

@parlough
Copy link
Copy Markdown
Member

@parlough parlough commented May 16, 2026

This helps avoid conflicting with any other Jaspr sites you might happen to have running and additionally enables you to serve multiple of our own sites at the same time :D

Contributes to #13148

@parlough parlough requested review from a team and sfshaza2 as code owners May 16, 2026 03:51
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements dynamic port assignment for the jaspr serve command, allowing multiple sites to be served concurrently by calculating ports based on the site's index. Feedback suggests that using the enum index for port calculation is unstable and could lead to collisions; it is recommended to define these ports explicitly in the Site constructor for better stability and clarity.

Comment thread tool/dash_site/lib/src/sites.dart
@flutter-website-bot
Copy link
Copy Markdown
Collaborator

Visit the preview URL for this PR (updated for commit 016ccae):

https://flutter-docs-prod--pr13389-misc-jaspr-port-customizati-hydvppjz.web.app

Copy link
Copy Markdown
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@sfshaza2 sfshaza2 merged commit 6aa581d into main May 17, 2026
10 checks passed
@sfshaza2 sfshaza2 deleted the misc/jaspr-port-customization branch May 17, 2026 18:54
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.

3 participants