-
Notifications
You must be signed in to change notification settings - Fork 308
fix(apps/hermes/client): allow baseURL with suffixes #1728
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
Conversation
|
@mubaris is attempting to deploy a commit to the pyth-web Team on Vercel. A member of the Team first needs to authorize it. |
| filter?: string; | ||
| }): Promise<PriceFeedMetadata[]> { | ||
| const url = new URL("/v2/price_feeds", this.baseURL); | ||
| const url = new URL(`${this.baseURL}/v2/price_feeds`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep the current structure but make the path relative e.g.
const url = new URL('v2/price_feeds', baseURL);
The URL constructor ensures that the protocol and host parts of the base URL are preserved correctly, even if the base URL has additional path components.
If you could also make the changes for getLatestPriceUpdates and getPriceUpdatesAtTimestamp that would be appreciated!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have updated it
cctdaniel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching the bug and opening a PR, left a comment and happy to look again once that's addressed.
|
thanks for your contribution! can you bump the package version? |
|
done! |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
No description provided.