From 99522a5544b655099cc4356085ed646f311d19c8 Mon Sep 17 00:00:00 2001 From: MOHAN Date: Thu, 30 Jul 2026 07:45:14 +0530 Subject: [PATCH] Point frontend proxy to Aarthalabs API --- lib/backend.ts | 2 +- write-frontend-1-lib.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/backend.ts b/lib/backend.ts index 4ada50c..2bd8a66 100644 --- a/lib/backend.ts +++ b/lib/backend.ts @@ -4,7 +4,7 @@ import { NextRequest, NextResponse } from "next/server"; import { ACCESS_COOKIE, NONCE_COOKIE } from "./auth-cookies"; -const BASE_URL = process.env.LEDGERONE_API_URL ?? "http://localhost:3051"; +const BASE_URL = process.env.LEDGERONE_API_URL ?? "https://api.aarthalabs.com"; export function getBackendUrl(path: string): string { return `${BASE_URL}/api/${path.replace(/^\//, "")}`; diff --git a/write-frontend-1-lib.mjs b/write-frontend-1-lib.mjs index e4523c2..3d38729 100644 --- a/write-frontend-1-lib.mjs +++ b/write-frontend-1-lib.mjs @@ -126,7 +126,7 @@ writeFileSync("lib/backend.ts", `// Server-side proxy helper for Next.js API rou import { NextRequest, NextResponse } from "next/server"; -const BASE_URL = process.env.LEDGERONE_API_URL ?? "http://localhost:3051"; +const BASE_URL = process.env.LEDGERONE_API_URL ?? "https://api.aarthalabs.com"; export function getBackendUrl(path: string): string { return \`\${BASE_URL}/api/\${path.replace(/^\\//, "")}\`;