Skip to content

Commit 8462a31

Browse files
committed
chore: fix rate limit
1 parent a4d1602 commit 8462a31

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

apps/api/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ const authLimiter = rateLimit({
5050

5151
const apiLimiter = rateLimit({
5252
windowMs: 15 * 60 * 1000,
53-
max: 30,
53+
max: 100,
5454
message: "Too many requests from this IP",
5555
standardHeaders: true,
5656
legacyHeaders: false,
57+
handler: (req, res) => {
58+
console.log(`[RATE LIMIT] IP ${req.ip} hit API rate limit`);
59+
res.status(429).json({ error: "Too many requests from this IP" });
60+
}
5761
});
5862

5963
// Request size limits (except for webhook - needs raw body)

apps/web/src/app/(main)/(landing)/pricing/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ const SecondaryPricingCard = () => {
373373
<h2 className="text-6xl lg:text-[90px] lg:leading-[82px] tracking-tight font-semibold">
374374
$49 <span className="text-4xl">/ year</span>
375375
</h2>
376+
<p className="text-lg text-white-400 mt-2">(~ ₹4,351 INR)</p>
376377
</div>
377378
<div className="w-full border-dashed border-border-primary px-6 lg:px-10 py-4 ">
378379
<PaymentFlow
@@ -461,9 +462,9 @@ const TestimonialsSection = () => {
461462
content: (
462463
<div className="space-y-3 text-pretty">
463464
<p>
464-
Okay so there are a few things I genuinely value about OpenSox
465-
Pro, and I&apos;ll focus on the core points because everything
466-
else is just a natural extension of these.
465+
Okay so there are a few things I genuinely value about OpenSox Pro,
466+
and I&apos;ll focus on the core points because everything else is
467+
just a natural extension of these.
467468
</p>
468469
<ul className="list-disc space-y-3 pl-6">
469470
<li>

0 commit comments

Comments
 (0)