Skip to content

Commit ad2d7ef

Browse files
authored
Remove "type" from proper rate limit binding (#25313)
1 parent 8897f31 commit ad2d7ef

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ main = "src/index.js"
3232

3333
[[ratelimits]]
3434
name = "MY_RATE_LIMITER"
35-
type = "ratelimit"
3635
# An identifier you define, that is unique to your Cloudflare account.
3736
# Must be an integer.
3837
namespace_id = "1001"
@@ -106,14 +105,12 @@ main = "src/index.js"
106105
# Free user rate limiting
107106
[[ratelimits]]
108107
name = "FREE_USER_RATE_LIMITER"
109-
type = "ratelimit"
110108
namespace_id = "1001"
111109
simple = { limit = 100, period = 60 }
112110

113111
# Paid user rate limiting
114112
[[ratelimits]]
115113
name = "PAID_USER_RATE_LIMITER"
116-
type = "ratelimit"
117114
namespace_id = "1002"
118115
simple = { limit = 1000, period = 60 }
119116
```
@@ -130,14 +127,11 @@ A rate limiting binding has three settings:
130127

131128
For example, to apply a rate limit of 1500 requests per minute, you would define a rate limiting configuration as follows:
132129

133-
134-
135130
<WranglerConfig>
136131

137132
```toml
138133
[[ratelimits]]
139134
name = "MY_RATE_LIMITER"
140-
type = "ratelimit"
141135
namespace_id = "1001"
142136

143137
# 1500 requests - calls to limit() increment this

0 commit comments

Comments
 (0)