Skip to content

fix(env): apply public defaults to client env - #211

Merged
TheAlexLichter merged 1 commit into
mainfrom
fix/env-default
May 23, 2026
Merged

TheAlexLichter merged 1 commit into
mainfrom
fix/env-default

Conversation

@TheAlexLichter

@TheAlexLichter TheAlexLichter commented May 23, 2026 •

Copy link
Copy Markdown
Member

Expose schema defaults to the Vite client environment, so that client-exposed keys receive default values, respecting user-provided values.

Resolves void-sdk/void#45

@netlify

netlify Bot commented May 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for staging-void-cloud ready!

Name Link
🔨 Latest commit af269b0
🔍 Latest deploy log https://app.netlify.com/projects/staging-void-cloud/deploys/6a11836a0c02dc00085a0ce6
😎 Deploy Preview https://deploy-preview-211--staging-void-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@TheAlexLichter
TheAlexLichter merged commit 78bab78 into main May 23, 2026
9 checks passed
@TheAlexLichter
TheAlexLichter deleted the fix/env-default branch May 23, 2026 11:22
cpojer pushed a commit that referenced this pull request Sep 11, 2026
* docs(plan): SDD plan 0076 — void build logs CLI

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(api): extract isTerminalBuildStatus into shared build-status module

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(api): owner-guarded build list + build logs routes

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(plan): reformat 0076 (oxfmt)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs: note user-facing container build logs via void build logs

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(api): surface DO-authoritative terminal status on build logs read

Adversarial-review finding: the build-logs route derived terminal only from
the Postgres row, which can lag ACTIVE until the stale reaper if a completion
path's PG write throws (DO/container already terminal). handleReadLogs now
additively returns the DO-local status/terminal; the route ORs it with the
PG-derived signal so --follow stops promptly. Purely additive on the read
path — no terminal-write path changed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(api): re-read Postgres so the DB status wins over a lost-CAS DO status

Confirm-closure finding: when the DO reports terminal but our pre-DO PG
snapshot was non-terminal, re-read the build row — a concurrent terminalizer
may have committed cancelled/failed while the DO's local status (lost CAS)
still reads complete. Fresh terminal PG status wins; only the genuine
stale-active window (PG still non-terminal) trusts the DO status.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* chore: bump framework submodule to merged `void build logs` CLI (#244)

Re-points the framework submodule to ab38b96 on framework main — the
squash-merge of #244 (the `void build logs` CLI) — now that
it has landed. Aligns the owner-guarded build-logs API routes in this PR with
the CLI that consumes them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

env.ts doesn't apply .default("value") to client

2 participants