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(/^\\//, "")}\`;