From 0178f89f2b8b543b27e631e250ae2f19b9a6a6b3 Mon Sep 17 00:00:00 2001 From: gosangam Date: Thu, 18 Jun 2026 01:09:09 +0530 Subject: [PATCH] test: rybbit proxy ip --- app/(app)/about/page.tsx | 15 ++++++++++++--- app/api/track/route.ts | 4 ++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/(app)/about/page.tsx b/app/(app)/about/page.tsx index 185c93e9..8de2966f 100644 --- a/app/(app)/about/page.tsx +++ b/app/(app)/about/page.tsx @@ -9,10 +9,19 @@ import { Blocks, Circle, CircleCheck, - Clock + Clock, + type LucideIcon, } from "lucide-react"; -const PHASES = [ +type Phase = { + title: string; + status: "done" | "in-progress" | "upcoming"; + icon: LucideIcon; + description: string; + highlights: string[]; +}; + +const PHASES: Phase[] = [ { title: "Phase I — The Vedabase", status: "done" as const, @@ -29,7 +38,7 @@ const PHASES = [ }, { title: "Phase II — Devotee Features", - status: "in-progress" as const, + status: "done" as const, icon: Users, description: "Adding user-centric features so devotees can engage with the archive personally — sign in, save favourite quotes, build collections, share with attribution, and tag someone to a specific text.", diff --git a/app/api/track/route.ts b/app/api/track/route.ts index 77e4059b..312d2c33 100644 --- a/app/api/track/route.ts +++ b/app/api/track/route.ts @@ -9,6 +9,10 @@ export async function POST(req: Request) { headers.set("x-real-ip", ip); headers.delete("host"); // avoid sending your app's Host to the Rybbit backend + console.log("XFF:", req.headers.get("x-forwarded-for")); + console.log("XRI:", req.headers.get("x-real-ip")); + console.log("resolved ip:", ip); + const res = await fetch(`${process.env.NEXT_PUBLIC_RYBBIT_HOST}/api/track`, { method: "POST", headers,