feat: add read-only bird boundary
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { TwitterClient } from '@yuta/bird'
|
||||
import type { BirdReader } from './post-service'
|
||||
|
||||
let client: TwitterClient | undefined
|
||||
|
||||
export function getBirdReader(): BirdReader {
|
||||
client ??= new TwitterClient({
|
||||
relayBaseUrl: process.env.TWITTER_RELAY_BASE_URL,
|
||||
profileName: process.env.BIRD_PROFILE_NAME,
|
||||
timeoutMs: 20_000,
|
||||
})
|
||||
return client
|
||||
}
|
||||
Reference in New Issue
Block a user