Skip to content

Inject --port and --ip for wrangler dev (fixes #263)#272

Open
ericclemmons wants to merge 1 commit intovercel-labs:mainfrom
ericclemmons:fix/issue-263-wrangler-port
Open

Inject --port and --ip for wrangler dev (fixes #263)#272
ericclemmons wants to merge 1 commit intovercel-labs:mainfrom
ericclemmons:fix/issue-263-wrangler-port

Conversation

@ericclemmons
Copy link
Copy Markdown

Summary

  • Fixes Pass PORT as --port for wrangler #263. Wrangler does not honor the PORT env var, so portless was unable to route the auto-assigned port to wrangler-based apps.
  • Adds wrangler to the framework auto-injection table so portless appends --port <port> to the spawned command.
  • Wrangler uses --ip for the bind address (its --host flag refers to the route hostname, not where to listen), so this PR also introduces a per-framework hostFlag override and emits --ip 127.0.0.1 for wrangler.
  • Updates README, SKILL.md, and --help output to reflect the new framework.

Test plan

  • pnpm --filter portless test (599 tests pass, including 4 new wrangler cases in cli-utils.test.ts)
  • pnpm lint
  • pnpm --filter portless run type-check
  • pnpm --filter portless run build
  • Manual smoke test: portless run wrangler dev against a Worker project on a fresh proxy and confirm the dashboard shows the auto-assigned port

🤖 Generated with Claude Code

Wrangler does not honor the PORT env var, so portless was unable to
route the auto-assigned port to wrangler-based apps. Add wrangler to
the framework auto-injection table.

Wrangler uses --ip for the bind address (its --host flag refers to
the route hostname, not where to listen), so introduce a per-framework
hostFlag override and use --ip 127.0.0.1 for wrangler.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

@ericclemmons is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

Pass PORT as --port for wrangler

1 participant