Skip to content

Commit 9b3db87

Browse files
committed
Merge branch 'main' of https://github.com/Nishantjain10/appwrite-website into feat-framework-site-blogs
2 parents 2e20186 + 838251a commit 9b3db87

File tree

3 files changed

+68
-14
lines changed

3 files changed

+68
-14
lines changed

src/lib/layouts/SidebarNavButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class="web-side-nav-button flex size-10 w-full items-center rounded-lg p-2 whitespace-nowrap"
1010
class:is-selected={page.url?.pathname === groupItem.href}
1111
href={groupItem.href}
12-
target={groupItem.openInNewTab ? '_blank' : '_self'}
12+
target={groupItem.openInNewTab ? '_blank' : undefined}
1313
>
1414
{#if groupItem.icon}
1515
<span class="icon {groupItem.icon}" aria-hidden="true"></span>

src/routes/docs/advanced/platform/rate-limits/+page.markdoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ X-RateLimit-Reset: 1377013266
5050
}
5151
```
5252

53+
# Dev keys {% #dev-keys %}
54+
55+
Rate limits are necessary to protect your apps and users from abuse; however, they can sometimes add unwanted friction when a developer is trying to repeatedly consume certain Appwrite APIs to test their application in a short period. [Dev keys](/docs/advanced/platform/dev-keys) are a type of secret used by client apps to bypass these rate limits in development environments.
56+
57+
To use dev keys, client apps add a header `X-Appwrite-Dev-Key` containing the secret to all HTTP requests sent to the Appwrite API. Appwrite recognizes this header, verifies the secret, and if valid, allows the request to bypass the rate limit.
58+
59+
```http
60+
X-Appwrite-Dev-Key: 5b0be23...abda7c6
61+
```
62+
63+
Dev keys should never be included in production applications as they can expose your application to abuse. They are meant for development and testing purposes only.
64+
5365
# Service abuse {% #service-abuse %}
5466

5567
To protect the quality of service from Appwrite, additional rate limits may apply to some actions. For example, rapidly creating content, polling aggressively instead of using webhooks, making API calls with a high concurrency, or repeatedly requesting data that is computationally expensive may result in abuse rate limiting.

0 commit comments

Comments
 (0)