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

Make FAST_AUTH_RELAYER_URL configurable #221

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hcho112
Copy link
Collaborator

@hcho112 hcho112 commented Apr 30, 2024

This PR closes #220

This PR will allow to configure FAST_AUTH_RELAYER_URL as per request

@hcho112 hcho112 requested a review from esaminu April 30, 2024 03:22
Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fast-auth-signer ✅ Ready (Inspect) Visit Preview Apr 30, 2024 3:22am

@@ -24,4 +24,5 @@ window.env = {
SENTRY_DSN: "${SENTRY_DSN}",
SENTRY_DSN_TESTNET: "${SENTRY_DSN_TESTNET}",
GIT_COMMIT_HASH: "${GIT_COMMIT_HASH}",
FAST_AUTH_RELAYER_URL: "${FAST_AUTH_RELAYER_URL}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this is the best approach.

As you can see, on the same config file, we already define RELAYER_URL_TESTNET and RELAYER_URL. With this PR we are introducing a new URL with the same purpose to maintain.

I think we should:

  • Wait https://near-relayer-mainnet.api.pagoda.co support /send_meta_tx_async
  • Refactor the code to accept a base relayer url (eg: www.relayer.com) instead of relayer with path url (eg: www.relayer.com/relay)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think Danny? I know it will be a bit of work, but I believe it's the path we should go

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree. Initially I was also had a doubt about whats difference between RELAYER_URL VS FAST_AUTH_RELAYER_URL and why do we have both.

Maybe we revisit this PR when https://near-relayer-mainnet.api.pagoda.co support /send_meta_tx_async

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, let's wait for it and then we work on the refactor :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make fast-auth relayer url configurable
2 participants