Skip to content

Support Laravel port injection#331

Open
nguyenphutrong wants to merge 2 commits into
vercel-labs:mainfrom
nguyenphutrong:feature/laravel-artisan-serve
Open

Support Laravel port injection#331
nguyenphutrong wants to merge 2 commits into
vercel-labs:mainfrom
nguyenphutrong:feature/laravel-artisan-serve

Conversation

@nguyenphutrong

@nguyenphutrong nguyenphutrong commented Jun 15, 2026

Copy link
Copy Markdown

Summary

  • Detect Laravel as a framework that ignores PORT.
  • Inject --port <assigned-port> and --host 127.0.0.1 for Laravel dev server commands.
  • Document Laravel support in README, docs pages, the portless skill, and CLI help output.

Validation

  • pnpm exec vitest run src/cli-utils.test.ts -t injectFrameworkFlags
  • pnpm type-check
  • pnpm exec prettier --check ../../README.md ../../skills/portless/SKILL.md ../../apps/docs/src/app/configuration/page.mdx ../../apps/docs/src/app/page.mdx src/cli-utils.ts src/cli-utils.test.ts src/cli.ts
  • pnpm build
  • pnpm --filter @portless/docs build
  • node packages/portless/dist/cli.js --help | rg -n 'Frameworks that ignore PORT|Laravel'

Note

pnpm exec vitest run src/cli-utils.test.ts still has one unrelated local failure in the LAN marker test because 127.0.0.1:1355 is listening in this environment, so discoverState() treats the marker as active and returns the LAN IP.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@nguyenphutrong nguyenphutrong changed the title Support Laravel artisan serve port injection Support Laravel port injection Jun 15, 2026
@nguyenphutrong nguyenphutrong marked this pull request as ready for review June 15, 2026 04:24
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.

1 participant