feat: add internal backend URL configuration and enhance server URL handling in SurfSense settings

This commit is contained in:
Anish Sarkar 2026-04-21 11:08:36 +05:30
parent 1f524660e1
commit 1abbc6021f
4 changed files with 20 additions and 3 deletions

View file

@ -5,7 +5,10 @@ import type { Context } from "@/types/zero";
import { queries } from "@/zero/queries";
import { schema } from "@/zero/schema";
const backendURL = process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL || "http://localhost:8000";
const backendURL =
process.env.FASTAPI_BACKEND_INTERNAL_URL ||
process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL ||
"http://localhost:8000";
async function authenticateRequest(
request: Request