Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for fallback hubUrls #488

Open
dalechyn opened this issue Sep 10, 2024 Discussed in #158 · 0 comments
Open

Support for fallback hubUrls #488

dalechyn opened this issue Sep 10, 2024 Discussed in #158 · 0 comments
Labels
D: Easy Difficulty: Easy Good First Issue Misc: Good First Issue P: Low Priority: Low T: Feature Type: Feature

Comments

@dalechyn
Copy link
Collaborator

Discussed in #158

Originally posted by ggomaeng March 16, 2024
It would be pretty neat to pass in an array of hubUrls like Viem's fallback.

There are times when the hub is down and it just makes the app non-functional.

Current

import { Frog } from 'frog'
 
const app = new Frog({
  hub: {
    apiUrl: 'https://api.hub.wevm.dev'
  }
})

Proposal

import { Frog } from 'frog'
 
const app = new Frog({
  hub: {
    apiUrl: ['https://api.hub.wevm.dev', 'https://freefarcasterhub.com', ...]
  }
})

I used to do something like below before finding frog 🐸

https://gist.github.com/ggomaeng/7895a2e410874ca87f5534890055d20c

@dalechyn dalechyn added D: Easy Difficulty: Easy Good First Issue Misc: Good First Issue P: Low Priority: Low T: Feature Type: Feature labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D: Easy Difficulty: Easy Good First Issue Misc: Good First Issue P: Low Priority: Low T: Feature Type: Feature
Projects
None yet
Development

No branches or pull requests

1 participant