mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
refactor(env): replace inline process.env reads with BACKEND_URL in lib/
This commit is contained in:
parent
8174949b38
commit
1fbb8fb58d
3 changed files with 7 additions and 10 deletions
|
|
@ -9,7 +9,7 @@ import {
|
|||
NetworkError,
|
||||
NotFoundError,
|
||||
} from "../error";
|
||||
|
||||
import { BACKEND_URL } from "@/lib/env-config";
|
||||
enum ResponseType {
|
||||
JSON = "json",
|
||||
TEXT = "text",
|
||||
|
|
@ -390,4 +390,4 @@ class BaseApiService {
|
|||
}
|
||||
}
|
||||
|
||||
export const baseApiService = new BaseApiService(process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL || "");
|
||||
export const baseApiService = new BaseApiService(BACKEND_URL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue