Skip to content

bootstrapFetch: honor SMOOAI_HARNESS_<KEY> override (§15 escape hatch)#112

Merged
brentrager merged 1 commit into
mainfrom
SMOODEV-bootstrap-harness-override
Jun 29, 2026
Merged

bootstrapFetch: honor SMOOAI_HARNESS_<KEY> override (§15 escape hatch)#112
brentrager merged 1 commit into
mainfrom
SMOODEV-bootstrap-harness-override

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

bootstrapFetch ignored the documented §15 prod-script override (SMOOAI_HARNESS_DATABASE_URL etc.) — being pure-HTTP, with no SST stage it fell through to env='development' and silently fetched the wrong environment's value. This makes an explicit SMOOAI_HARNESS_<KEY> env var short-circuit the fetch, mirroring packages/db drizzleClient.resolveDbUrl, so the override works uniformly across all cold-start consumers (db-migrate and friends). +4 tests (25 pass). 🤖 Generated with Claude Code

…pe hatch)

bootstrapFetch (the cold-start config fetcher used by scripts like db-migrate)
was pure-HTTP and ignored SMOOAI_HARNESS_DATABASE_URL / SMOO_CONFIG_DATABASE_URL,
so a prod-targeting script couldn't be forced from a laptop — with no SST stage
it fell through to env='development' and silently fetched the WRONG environment's
value over HTTP. Now an explicit SMOOAI_HARNESS_<SCREAMING_SNAKE(key)> env var
short-circuits the fetch entirely, exactly mirroring packages/db
drizzleClient.resolveDbUrl, so the §15 override works uniformly across every
cold-start config consumer. +4 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a9dc700

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@smooai/config Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brentrager brentrager merged commit 23e6577 into main Jun 29, 2026
1 check passed
@brentrager brentrager deleted the SMOODEV-bootstrap-harness-override branch June 29, 2026 11:39
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