Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import { Endpoints, setup as internalSetup } from './setup/internal'
type UnknownObject =
{ [key: string]: unknown }
/**
* Toggle debug mode.
*
* Only adds a few `console.log`s at this moment.
*/
export function debug({ enabled }: { enabled: boolean }): boolean {
internalSetup.debug = enabled
return internalSetup.debug
}
/**
* Override endpoints.
*
* You can override each of these,
* no need to provide them all here.
*
* `api` Location of the Fission API
* (default `https://runfission.com`)
* `lobby` Location of the authentication lobby.
* (default `https://auth.fission.codes`)
* `user` User's domain to use, will be prefixed by username.
* (default `fission.name`)
*/
export function endpoints(e: Partial<Endpoints>): Endpoints {
internalSetup.endpoints = { ...internalSetup.endpoints, ...e }
return { ...internalSetup.endpoints }
}
|