OptionalcoordinatorShard coordinator Durable Object
OptionaldebugEnable debug logging for development and troubleshooting
OptionaldisableDisable automatic migration detection and background migration (useful for testing)
OptionalhashWhether to hash shard mapping keys with SHA-256 for security and privacy. When enabled, primary keys are hashed before storing in KV, protecting sensitive data like emails from being visible in KV keys.
KV namespace for storing mappings
OptionalmaxMaximum database size in bytes. Shards that exceed this size will be excluded from new allocations (existing mappings remain intact).
OptionalshardGeographic locations of each shard (required for location strategy)
Available D1 database bindings
OptionalstrategyDefault shard allocation strategy (can be single strategy or mixed strategy object)
OptionaltargetTarget region for location-based sharding
Configuration for the collegedb sharded database