Skip to content

Commit

Permalink
Merge pull request #137 from sadmann7/rate-limit
Browse files Browse the repository at this point in the history
feat: add rate limiter
  • Loading branch information
sadmann7 authored May 12, 2024
2 parents b2e2461 + e26e8f2 commit a7bc3f3
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 348 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ EMAIL_FROM_ADDRESS="[email protected]"
UPLOADTHING_SECRET="sk_live_"
UPLOADTHING_APP_ID="•••••••••••••••••"

# upstash
UPSTASH_REDIS_REST_URL="https://YOUR_UPSTASH_REDIS_REST_URL"
UPSTASH_REDIS_REST_TOKEN="•••••••••••••"

# Stripe
# Stripe Publishable Key and Secret Key found at https://dashboard.stripe.com/test/apikeys
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_"
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
"@tanstack/react-table": "^8.16.0",
"@tremor/react": "^3.16.2",
"@uploadthing/react": "^6.5.3",
"@upstash/ratelimit": "^1.1.3",
"@upstash/redis": "^1.30.1",
"ai": "^3.1.5",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand All @@ -73,7 +75,7 @@
"geist": "^1.3.0",
"input-otp": "^1.2.4",
"nanoid": "^5.0.7",
"next": "14.3.0-canary.58",
"next": "14.2.3",
"next-contentlayer": "^0.3.4",
"next-themes": "^0.3.0",
"openai": "^4.45.0",
Expand Down
Loading

0 comments on commit a7bc3f3

Please sign in to comment.