releases.shpreview

Durable Objects get US data residency jurisdiction

1 featureThis release1 featureNew capabilitiesAI-tallied from the release notes

Durable Objects now supports a us jurisdiction, letting you create Durable Objects that only run and store data within the United States. Use the us jurisdiction when you need to keep a Durable Object's compute and storage inside the United States to meet data residency requirements.

Create a namespace restricted to the us jurisdiction the same way as any other jurisdiction:

<div><div><span>// Worker</span></div></div><div><div><span>export</span><span> </span><span>default</span><span> </span><span>{</span></div></div><div><div><span>  </span><span>async</span><span> </span><span>fetch</span><span>(</span><span>request</span><span>,</span><span> </span><span>env</span><span>)</span><span> </span><span>{</span></div></div><div><div><span>    </span><span>const</span><span> </span><span>usSubnamespace</span><span> </span><span>=</span><span> </span><span>env</span><span>.</span><span>MY_DURABLE_OBJECT</span><span>.</span><span>jurisdiction</span><span>(</span><span>"us"</span><span>)</span><span>;</span></div></div><div><div><span>    </span><span>const</span><span> </span><span>stub</span><span> </span><span>=</span><span> </span><span>usSubnamespace</span><span>.</span><span>getByName</span><span>(</span><span>"general"</span><span>)</span><span>;</span></div></div><div><div><span>    </span><span>return</span><span> </span><span>stub</span><span>.</span><span>fetch</span><span>(</span><span>request</span><span>)</span><span>;</span></div></div><div><div><span>  </span><span>},</span></div></div><div><div><span>};</span></div></div>

Workers may still access Durable Objects constrained to the us jurisdiction from anywhere in the world. The jurisdiction constraint only controls where the Durable Object itself runs and persists data.

For the full list of supported jurisdictions, refer to Data location — Restrict Durable Objects to a jurisdiction.

Fetched June 26, 2026