Skip to content

fix: rename PORT to WATT_ADMIN_PORT to avoid .env collisions#175

Merged
mcollina merged 1 commit intomainfrom
fix/rename-port-env-var
Feb 26, 2026
Merged

fix: rename PORT to WATT_ADMIN_PORT to avoid .env collisions#175
mcollina merged 1 commit intomainfrom
fix/rename-port-env-var

Conversation

@mcollina
Copy link
Member

Summary

  • Renamed the PORT env var to WATT_ADMIN_PORT across the project (watt.json, lib/start.js, .env.sample, tests, Playwright config)
  • PORT is a very common env var used by many tools and projects; having it as the Watt config placeholder meant any .env file with PORT set would unintentionally override the admin dashboard port

Test plan

  • CLI tests pass (npm run test:cli — 7/7)
  • E2E tests pass with the renamed env var
  • Verify that a .env with PORT=3000 no longer affects the dashboard port

🤖 Generated with Claude Code

PORT is a very common env var used by many tools and projects. Using it
as the server port placeholder in watt.json meant any .env file with
PORT set would unintentionally change the admin dashboard port.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mcollina mcollina merged commit 608b6de into main Feb 26, 2026
1 check passed
@mcollina mcollina deleted the fix/rename-port-env-var branch February 26, 2026 09:20
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