refactor(env): replace inline process.env reads with BACKEND_URL in editor, chat, dashboard and settings

This commit is contained in:
Varun Shukla 2026-05-19 01:29:31 +05:30
parent 8174949b38
commit fead3a64f4
10 changed files with 33 additions and 27 deletions

View file

@ -4,11 +4,9 @@ import { NextResponse } from "next/server";
import type { Context } from "@/types/zero";
import { queries } from "@/zero/queries";
import { schema } from "@/zero/schema";
import { BACKEND_URL } from "@/lib/env-config";
const backendURL =
process.env.FASTAPI_BACKEND_INTERNAL_URL ||
process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL ||
"http://localhost:8000";
const backendURL = BACKEND_URL;
async function authenticateRequest(
request: Request