File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,5 +30,6 @@ export const SIGN_MESSAGE_PORT = 6969;
3030export const SIGN_MESSAGE = "Register Bitte Agent!" ;
3131export const BITTE_CONFIG_ENV_KEY = "BITTE_CONFIG" ;
3232export const BITTE_KEY_ENV_KEY = "BITTE_KEY" ;
33+ export const BITTE_HISTORY_API_URL = "https://api.bitte.ai/v1/history" ;
3334
3435export const DEFAULT_PORT = 3000 ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { promises as fs } from "node:fs";
33import path from "node:path" ;
44
55import { type ApiConfig } from "../commands/dev" ;
6+ import { BITTE_HISTORY_API_URL } from "../config/constants" ;
67
78export async function startUIServer (
89 apiConfig : ApiConfig ,
@@ -93,7 +94,7 @@ export async function startUIServer(
9394 if ( ! id ) {
9495 throw new Error ( "No history id on request." ) ;
9596 }
96- const url = `${ apiConfig . url } /history ?id=${ id } ` ;
97+ const url = `${ BITTE_HISTORY_API_URL } ?id=${ id } ` ;
9798
9899 const response = await fetch ( url , {
99100 headers : {
You can’t perform that action at this time.
0 commit comments