fix to make monitor use env (#7371)

fix to make it use env
pull/7375/head
Bently 2024-07-10 17:18:59 +01:00 committed by GitHub
parent a408da8317
commit 0fb8a84382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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;
}