test: rybbit proxy ip
This commit is contained in:
@@ -9,10 +9,19 @@ import {
|
|||||||
Blocks,
|
Blocks,
|
||||||
Circle,
|
Circle,
|
||||||
CircleCheck,
|
CircleCheck,
|
||||||
Clock
|
Clock,
|
||||||
|
type LucideIcon,
|
||||||
} from "lucide-react";
|
} 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",
|
title: "Phase I — The Vedabase",
|
||||||
status: "done" as const,
|
status: "done" as const,
|
||||||
@@ -29,7 +38,7 @@ const PHASES = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Phase II — Devotee Features",
|
title: "Phase II — Devotee Features",
|
||||||
status: "in-progress" as const,
|
status: "done" as const,
|
||||||
icon: Users,
|
icon: Users,
|
||||||
description:
|
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.",
|
"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.",
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ export async function POST(req: Request) {
|
|||||||
headers.set("x-real-ip", ip);
|
headers.set("x-real-ip", ip);
|
||||||
headers.delete("host"); // avoid sending your app's Host to the Rybbit backend
|
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`, {
|
const res = await fetch(`${process.env.NEXT_PUBLIC_RYBBIT_HOST}/api/track`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers,
|
headers,
|
||||||
|
|||||||
Reference in New Issue
Block a user