Skip to content

Discriminate on redacted - #50

Closed
czxtm wants to merge 4 commits into
alchemy-run:mainfrom
czxtm:main
Closed

Discriminate on redacted#50
czxtm wants to merge 4 commits into
alchemy-run:mainfrom
czxtm:main

Conversation

@czxtm

@czxtm czxtm commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@czxtm czxtm changed the title Discriminate on refacted Discriminate on redacted Apr 12, 2026
@@ -998,12 +998,19 @@ ${[
if (news.env) {
for (const [key, value] of Object.entries(news.env)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to update the env type in WorkerProps to allow string | Redacted<string>?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in other PR

- Tighten Worker env type from Record<string,any> to
  Record<string,string|Redacted<string>> so plain vs secret bindings
  are discriminable at the type level (the runtime already branches
  on Redacted.isRedacted).
- Wrap Vite props in InputProps<ViteProps> so users can pass resource
  outputs (e.g. db.connectionUri from a Neon project) directly into
  env without manual resolution.
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.

2 participants