forked from WikiDeck/wikideck
Upstream WikiDeck/wikideck#14. On mainnet, `npm run miner` now uses https://wikideck.eom.dev unless --node is given. The private testnet keeps its loopback default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
477 B
TypeScript
11 lines
477 B
TypeScript
import type { NetworkProfile } from '../../shared/network.ts';
|
|
|
|
/** The official public Wikideck node. Mainnet miners use it unless --node says otherwise. */
|
|
export const OFFICIAL_NODE = 'https://wikideck.eom.dev';
|
|
/** The testnet is private, so testnet miners default to a local node. */
|
|
export const LOCAL_NODE = 'http://127.0.0.1:3001';
|
|
|
|
export function defaultNode(profile: NetworkProfile): string {
|
|
return profile === 'mainnet' ? OFFICIAL_NODE : LOCAL_NODE;
|
|
}
|