Skip to content

Commit

Permalink
Enable appview proxy in dev-env full network (#1580)
Browse files Browse the repository at this point in the history
proxy runtime flags
  • Loading branch information
dholms authored Sep 12, 2023
1 parent d4ebba8 commit fdf6a46
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/dev-env/src/bin-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const run = async () => {
},
plc: { port: 2582 },
})
await enableProxy(network)
await generateMockSetup(network)

console.log(
Expand All @@ -39,3 +40,39 @@ const run = async () => {
}

run()

// @TODO remove once we remove proxy runtime flags
const enableProxy = async (network: TestNetwork) => {
const flags = [
'appview-proxy:app.bsky.feed.getAuthorFeed',
'appview-proxy:app.bsky.graph.getFollowers',
'appview-proxy:app.bsky.feed.getPosts',
'appview-proxy:app.bsky.graph.getFollows',
'appview-proxy:app.bsky.feed.getLikes',
'appview-proxy:app.bsky.feed.getRepostedBy',
'appview-proxy:app.bsky.feed.getPostThread',
'appview-proxy:app.bsky.actor.getProfile',
'appview-proxy:app.bsky.actor.getProfiles',
'appview-proxy:app.bsky.feed.getTimeline',
'appview-proxy:app.bsky.feed.getSuggestions',
'appview-proxy:app.bsky.feed.getFeed',
'appview-proxy:app.bsky.feed.getActorFeeds',
'appview-proxy:app.bsky.feed.getActorLikes',
'appview-proxy:app.bsky.feed.getFeedGenerator',
'appview-proxy:app.bsky.feed.getFeedGenerators',
'appview-proxy:app.bsky.feed.getBlocks',
'appview-proxy:app.bsky.feed.getList',
'appview-proxy:app.bsky.notification.listNotifications',
'appview-proxy:app.bsky.feed.getLists',
'appview-proxy:app.bsky.feed.getListMutes',
'appview-proxy:com.atproto.repo.getRecord',
'appview-proxy:com.atproto.identity.resolveHandle',
'appview-proxy:app.bsky.notification.getUnreadCount',
'appview-proxy:app.bsky.actor.searchActorsTypeahead',
'appview-proxy:app.bsky.actor.searchActors',
]
await network.pds.ctx.db.db
.insertInto('runtime_flag')
.values(flags.map((name) => ({ name, value: '10' })))
.execute()
}

0 comments on commit fdf6a46

Please sign in to comment.