function envOrUndefined(key: string): string | undefined {
try {
return Deno.env.get("VALTOWN_API_URL");
} catch {}
}
export function getApiUrl(): string {
return envOrUndefined("VALTOWN_API_URL") ?? "https://api.val.town";
}
export const API_URL = getApiUrl();