cloudflare / cloudflare/workerd

Setting durable object jurisdiction should be a no-op in local env

Open
#4,167 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

When applying a jurisdiction for a durable object with:
`const euSubnamespace = env.MY_DURABLE_OBJECT.jurisdiction("eu");`
it does not work in local env and instead throws an error saying
```
Jurisdiction restrictions are not implemented in workerd.
```
I don't think anyone expects jurisdiction to take effect on the local machine.

Because of the error additional logic is needed to skip the jurisdiction setting when running locally, and this feels like an unnecessary complication.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.