# Validate dev runner port overrides and honor env state dir · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/335d6ac0764b78b00ee1d40b3eb3ed4f4532c0dd)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: 335d6ac0764b78b00ee1d40b3eb3ed4f4532c0dd

Requested commit: 335d6ac0764b78b00ee1d40b3eb3ed4f4532c0dd

Commit: 335d6ac0764b78b00ee1d40b3eb3ed4f4532c0dd

Tree: b526500f77b996ef792cc230907db595f66d4177

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Validate dev runner port overrides and honor env state dir

- Prefer `T3CODE_STATE_DIR` from env when `--state-dir` is unset or blank
- Throw on invalid `T3CODE_PORT` overrides and always recompute `VITE_WS_URL`
- Add tests for env/state-dir precedence, blank overrides, and invalid ports

```

## Parents

- [67f95ee25a52ccdce2251a4bebcab2cfc7851132](https://git.cafe/flambo/t3code/commit/67f95ee25a52ccdce2251a4bebcab2cfc7851132?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/335d6ac0764b78b00ee1d40b3eb3ed4f4532c0dd?format=markdown)
