12 lines · 319 B · TypeScript
RawDownload
const DEFAULT_BASE_URL = "http://127.0.0.1:4000"; let baseUrl =  typeof window !== "undefined" && typeof window.location?.origin === "string"    ? window.location.origin    : DEFAULT_BASE_URL; export const getBaseUrl = (): string => baseUrl; export const setBaseUrl = (url: string): void => {  baseUrl = url;};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t