thunderbolt icon indicating copy to clipboard operation
thunderbolt copied to clipboard

chore(dev-env): localhost defaults + dev scripts

Open ital0 opened this issue 6 months ago • 0 comments

[!NOTE] Medium Risk Moderate risk because it changes default PowerSync configuration based on NODE_ENV, which can affect startup/validation behavior in non-dev deployments if they relied on implicit localhost defaults.

Overview Updates PowerSync config defaults to no longer assume localhost in non-development environments: the schema defaults powersyncUrl, powersyncJwtKid, and powersyncJwtSecret to empty strings, while parseSettings only injects the previous localhost defaults when NODE_ENV=development.

Adjusts tests to cover the new NODE_ENV-dependent behavior and adds validation cases ensuring an empty JWT secret is allowed only when POWERSYNC_URL is empty, and rejected in non-dev when POWERSYNC_URL is set.

Reviewed by Cursor Bugbot for commit 4b03fc4e7a957006fa2c1e9020e5d068ae6f7309. Bugbot is set up for automated code reviews on this repo. Configure here.

ital0 avatar May 13 '26 18:05 ital0