Skip to content

Commit

Permalink
fix: startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 14, 2024
1 parent 97e67bf commit e965472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/workerd-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
$ pnpm cli
[mf:inf] Ready on http://127.0.0.1:44031

> env
{ kv: KvNamespace {} }

> env.kv.list()
{ keys: [], list_complete: true, cacheStatus: null }

Expand Down
2 changes: 1 addition & 1 deletion packages/workerd/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class RunnerObject implements DurableObject {
`() => ${options.fnString}`,
)();
const result = await fn({
env: objectPickBy(this.#env, (_v, k) => !k.search("__vite")),
env: objectPickBy(this.#env, (_v, k) => !k.startsWith("__vite")),
runner: this.#runner,
exports,
args: options.args,
Expand Down

0 comments on commit e965472

Please sign in to comment.