You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: make Workers RPC example reproducible - #32734
Show a two-directory layout for the Worker A and Worker B projects.
Add compatibility dates and use TypeScript entrypoint paths in both Wrangler configurations.
Generate Worker A's binding types from both configurations, which exposes Worker B's add() RPC method without a handwritten Env interface.
Convert the numeric result to a string before constructing the response, remove Worker B's unused fetch() method, and include the multi-Worker local development command.
Generated binding types with Wrangler 4.150.0 and checked both Workers in strict mode with TypeScript 6.0.3.
Ran the multi-config local development command: Worker A called Worker B and returned 3 with HTTP 200. The local fixture used compatibility date 2026-10-13, supported by the installed runtime.
pnpm run check passed: 566 Astro files with no errors, warnings, or hints; Worker type checking also passed.
The edited partial passed MDX compilation and Prettier checking.
Full-site pnpm run build was stopped after nearly four minutes without progress in Nimbus's astro:config:setup hook. Full build and the dependent lint:nimbus check remain unverified.
Fix the following review findings in PR #32734 (https://github.com/cloudflare/cloudflare-docs/pull/32734).
Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.
After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.
The comment must come before the commit because the next review reads PR comments.
## Style Guide- S-0f0d367e | src/content/partials/workers/service-binding-rpc-example.mdx:13 | Replace directional word `below`
The style guide forbids directional words such as `below` in prose; they must be replaced with a direct reference. The sentence "The TypeScript example below uses a separate directory for each Worker:" points directionally to content further down the page.
- S-0ad4a999 | src/content/partials/workers/service-binding-rpc-example.mdx:101 | Break up semicolon joining independent clauses
The style guide requires semicolons joining two independent clauses to be split into separate sentences. "Do not set `entrypoint` to `default`; omitting `entrypoint` selects the default export." joins two independent clauses with a semicolon.
Style Guide
src/content/partials/workers/service-binding-rpc-example.mdx:13 · Replace directional word below
The style guide forbids directional words such as below in prose; they must be replaced with a direct reference. The sentence "The TypeScript example below uses a separate directory for each Worker:" points directionally to content further down the page.
src/content/partials/workers/service-binding-rpc-example.mdx:101 · Break up semicolon joining independent clauses
The style guide requires semicolons joining two independent clauses to be split into separate sentences. "Do not set entrypoint to default; omitting entrypoint selects the default export." joins two independent clauses with a semicolon.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
add()RPC method without a handwrittenEnvinterface.fetch()method, and include the multi-Worker local development command.Closes #31154.
Validation
Validated after merging
productionin893c84d7d:3with HTTP 200. The local fixture used compatibility date2026-10-13, supported by the installed runtime.pnpm run checkpassed: 566 Astro files with no errors, warnings, or hints; Worker type checking also passed.Full-site
pnpm run buildwas stopped after nearly four minutes without progress in Nimbus'sastro:config:setuphook. Full build and the dependentlint:nimbuscheck remain unverified.