File tree Expand file tree Collapse file tree
desktop/src/renderer/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ const nowMs = () =>
6161
6262const readEnv = ( key : string ) : string | undefined => resolveEnvWithSettings ( key ) ;
6363
64+ // Public HyperBEAM mainnet defaults (Forward)
65+ const DEFAULT_HB_URL = "https://push.forward.computer" ;
66+ const DEFAULT_HB_SCHEDULER = "n_XZJhUnmldNFo4dhajoPZWhBXuJk-OcQr5JQ49c4Zo" ;
67+
6468const normalizeBase = ( value ?: string ) => {
6569 if ( ! value ) return undefined ;
6670 const trimmed = value . trim ( ) ;
@@ -71,14 +75,15 @@ const normalizeBase = (value?: string) => {
7175const resolveWorkerBase = ( ) =>
7276 normalizeBase ( readEnv ( "WORKER_PIP_BASE" ) ?? readEnv ( "WORKER_API_BASE" ) ?? readEnv ( "WORKER_BASE_URL" ) ) ;
7377
74- const resolveAoBase = ( ) => normalizeBase ( readEnv ( "AO_URL" ) ) ;
78+ const resolveAoBase = ( ) => normalizeBase ( readEnv ( "AO_URL" ) ?? DEFAULT_HB_URL ) ;
7579
7680const resolveSchedulerBase = ( ) =>
7781 normalizeBase (
7882 readEnv ( "SCHEDULER_URL" ) ??
7983 readEnv ( "AO_SCHEDULER_URL" ) ??
8084 readEnv ( "AO_SCHEDULER" ) ??
81- readEnv ( "SCHEDULER" ) ,
85+ readEnv ( "SCHEDULER" ) ??
86+ DEFAULT_HB_SCHEDULER ,
8287 ) ;
8388
8489const resolvePingTimeoutMs = ( ) => {
You can’t perform that action at this time.
0 commit comments