Skip to content

(Refactor) Link to new api reference #401

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

Merged
merged 8 commits into from
Aug 19, 2024

Conversation

aditya520
Copy link
Member

No description provided.

Copy link

vercel bot commented Aug 15, 2024

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

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 8:21pm

Copy link
Contributor

@cprussin cprussin left a comment

Choose a reason for hiding this comment

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

Change itself LGTM but we should also add redirects from the old urls to the new app so any bookmarks / search index results don't point to broken pages

@jayantk
Copy link
Contributor

jayantk commented Aug 15, 2024

@aditya520 there's a list of redirects in here https://github.com/pyth-network/documentation/blob/main/next.config.js that you can edit

next.config.js Outdated
@@ -118,6 +118,10 @@ const permanentRedirectArray = [
["/documentation", "/home"],

["/api-explorer/:slug*", "/price-feeds/api-reference/:slug*"],
[
"/price-feeds/api-reference/evm/:slug*",
"https://api-reference.pyth.network/price-feeds/evm/:slug*",
Copy link
Contributor

Choose a reason for hiding this comment

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

I probably wouldn't make these permanent redirects either, there's not much of a great reason to make redirects permanent and I could see us changing these in the future.

Rule of thumb is to always make redirects temporary unless you're absolutely certain that it will never change (for instance, http -> https redirect is usually permanent)

@aditya520 aditya520 merged commit 18b786e into main Aug 19, 2024
4 checks passed
@aditya520 aditya520 deleted the (refactor)-link-to-v2-api-reference branch August 19, 2024 20:31
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.

3 participants