-
Notifications
You must be signed in to change notification settings - Fork 31
(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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
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
@aditya520 there's a list of redirects in here https://github.com/pyth-network/documentation/blob/main/next.config.js that you can edit |
9734c73
to
fb4846c
Compare
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*", |
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 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)
No description provided.