feat: use unkey for global ratelimiting and identifier overrides (#14173)

* feat: use unkey for global ratelimiting and identifier overrides

fixes #13672

* revert: make test pass

* chore: push timeout incase unkey ever dies

* chore: push timeout incase unkey ever dies

---------

Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
Andreas Thomasandsean-brydon authored and GitHub committed 2024-03-26 15:52:00 +00:00
1 parent a8d95d54e7
commit 091d3cdd17
8 files changed
+85 -96

No files matched your search

+1 -2
View File
@@ -63,8 +63,7 @@
"@tanstack/react-query": "^5.17.15",
"@tremor/react": "^2.0.0",
"@types/turndown": "^5.0.1",
"@upstash/ratelimit": "^0.4.3",
"@upstash/redis": "^1.21.0",
"@unkey/ratelimit": "^0.1.1",
"@vercel/edge-config": "^0.1.1",
"@vercel/edge-functions-ui": "^0.2.1",
"@vercel/og": "^0.5.0",
@@ -16,7 +16,7 @@ export function setupAndTeardown() {
// process.env.DAILY_API_KEY = "MOCK_DAILY_API_KEY";
// Ensure that Rate Limiting isn't enforced for tests
delete process.env.UPSTASH_REDIS_REST_URL;
delete process.env.UNKEY_ROOT_KEY;
mockNoTranslations();
// mockEnableEmailFeature();
enableEmailFeature();