diff options
Diffstat (limited to 'src/state/queries/index.ts')
-rw-r--r-- | src/state/queries/index.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/state/queries/index.ts b/src/state/queries/index.ts new file mode 100644 index 000000000..affebb907 --- /dev/null +++ b/src/state/queries/index.ts @@ -0,0 +1,16 @@ +import {BskyAgent} from '@atproto/api' + +export const PUBLIC_BSKY_AGENT = new BskyAgent({ + service: 'https://api.bsky.app', +}) + +export const STALE = { + MINUTES: { + ONE: 1e3 * 60, + FIVE: 1e3 * 60 * 5, + }, + HOURS: { + ONE: 1e3 * 60 * 60, + }, + INFINITY: Infinity, +} |