Skip to content

fix(examples): align linear example on port 3001 [#3007]#3010

Merged
viniciusdacal merged 1 commit intomainfrom
fix/playwright-vtz-dev
Apr 28, 2026
Merged

fix(examples): align linear example on port 3001 [#3007]#3010
viniciusdacal merged 1 commit intomainfrom
fix/playwright-vtz-dev

Conversation

@viniciusdacal
Copy link
Copy Markdown
Contributor

Summary

The Linear example had a port mismatch: playwright.config.ts, e2e/linear.spec.ts, and src/api/server.ts all expected the dev server on localhost:3001, but package.json's dev script was just vtz dev (defaulting to port 3000). src/api/auth.ts also defaulted to 3000.

This was already broken pre-#3002 (the previous bun run dev invoked the same script), but #3002 made it visible because nothing else changes the port.

Fixed by aligning everything on 3001:

  • examples/linear/package.jsonvtz dev --port 3001
  • examples/linear/playwright.config.ts — webServer command: 'vtz dev --port 3001'
  • examples/linear/src/api/auth.tsAPP_URL default → http://localhost:3001
  • examples/linear/.env.exampleAPP_URL=http://localhost:3001

Closes #3007

Test plan

  • cd examples/linear && vtz dev binds on port 3001
  • cd examples/linear && npx playwright test boots dev server and reaches it on 3001
  • No port mismatch between package.json, playwright.config.ts, e2e/linear.spec.ts, src/api/server.ts, and src/api/auth.ts

🤖 Generated with Claude Code

The Linear example had a port mismatch: playwright config, e2e specs,
and src/api/server.ts expected 3001, but `vtz dev` (no flag) bound to
the default 3000, and src/api/auth.ts also defaulted to 3000.

Align everything on 3001:
- package.json: vtz dev --port 3001
- playwright.config.ts webServer command: vtz dev --port 3001
- src/api/auth.ts APP_URL default: 3001
- .env.example APP_URL: 3001

Closes #3007

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@viniciusdacal viniciusdacal merged commit e5d99f5 into main Apr 28, 2026
6 checks passed
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.

examples/linear: dev server port mismatch — config expects 3001, default vtz dev binds 3000

1 participant