refactor(env): replace inline process.env reads with BACKEND_URL in connector forms and hooks

This commit is contained in:
Varun Shukla 2026-05-19 01:16:02 +05:30
parent 1119f557df
commit 9e886f8274
6 changed files with 15 additions and 15 deletions

View file

@ -9,11 +9,11 @@ import { useApiKey } from "@/hooks/use-api-key";
import { copyToClipboard as copyToClipboardUtil } from "@/lib/utils";
import { getConnectorBenefits } from "../connector-benefits";
import type { ConnectFormProps } from "../index";
import { BACKEND_URL } from "@/lib/env-config";
const PLUGIN_RELEASES_URL =
"https://github.com/MODSetter/SurfSense/releases?q=obsidian&expanded=true";
const BACKEND_URL = process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL ?? "https://surfsense.com";
/**
* Obsidian connect form for the plugin-only architecture.