fix to make monitor use env (#7371)

fix to make it use env
This commit is contained in:
Bently
2024-07-10 17:18:59 +01:00
committed by GitHub
parent a408da8317
commit 0fb8a84382

View File

@@ -4,7 +4,7 @@ import { ObjectSchema } from "./types";
export default class AutoGPTServerAPI {
private baseUrl: string;
constructor(baseUrl: string = "http://localhost:8000") {
constructor(baseUrl: string = process.env.AGPT_SERVER_URL || "http://localhost:8000") {
this.baseUrl = baseUrl;
}