From 7172f0cc17c722e32bb61868125d9fbdc3e0256b Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 20:04:04 +0000 Subject: [PATCH 1/2] Fix Solana guide redirect and update internal links - Add redirects for /price-feeds/core/use-real-time-data/* paths to pull-integration subdirectory - Add redirects for /price-feeds/use-real-time-data base paths - Update internal links in MDX files to use correct pull-integration paths - Fixes 404 error when accessing /price-feeds/core/use-real-time-data/solana Co-Authored-By: aditya@dourolabs.xyz --- next.config.js | 6 ++++++ pages/price-feeds/core/derive-cross-rate.mdx | 2 +- pages/price-feeds/core/price-feeds.mdx | 2 +- .../core/use-real-time-data/push-integration.mdx | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index 2d4fbade..4336650d 100644 --- a/next.config.js +++ b/next.config.js @@ -142,6 +142,12 @@ const permanentRedirectArray = [ "/price-feeds/use-real-time-data/:path((?!pull-integration(?:/|$)).*)", "/price-feeds/use-real-time-data/pull-integration/:path", ], + ["/price-feeds/use-real-time-data", "/price-feeds/use-real-time-data/pull-integration"], + [ + "/price-feeds/core/use-real-time-data/:path((?!pull-integration(?:/|$)).*)", + "/price-feeds/core/use-real-time-data/pull-integration/:path", + ], + ["/price-feeds/core/use-real-time-data", "/price-feeds/core/use-real-time-data/pull-integration"], ["/benchmarks", "/price-feeds/use-historic-price-data"], [ diff --git a/pages/price-feeds/core/derive-cross-rate.mdx b/pages/price-feeds/core/derive-cross-rate.mdx index ab1b9695..64ac75c6 100644 --- a/pages/price-feeds/core/derive-cross-rate.mdx +++ b/pages/price-feeds/core/derive-cross-rate.mdx @@ -91,7 +91,7 @@ You may find these additional resources helpful. #### How to use real-time data in EVM contracts -The [How to use real-time data in EVM contracts](./use-real-time-data/evm) guide provides a step-by-step guide on how to use real-time data in EVM contracts. +The [How to use real-time data in EVM contracts](./use-real-time-data/pull-integration/evm) guide provides a step-by-step guide on how to use real-time data in EVM contracts. #### Price Feed IDs diff --git a/pages/price-feeds/core/price-feeds.mdx b/pages/price-feeds/core/price-feeds.mdx index e625f949..1201cdf1 100644 --- a/pages/price-feeds/core/price-feeds.mdx +++ b/pages/price-feeds/core/price-feeds.mdx @@ -29,7 +29,7 @@ Price feeds also have different IDs in the Stable and Beta channels. On Solana, each feed additionally has a collection of **price feed accounts** containing the feed's data. The addresses of these accounts are programmatically derived from the feed id and a shard id, which is simply a 16-bit number. -See [How to Use Real-Time Data on Solana](./use-real-time-data/solana#price-feed-accounts) for more information on price feed accounts. +See [How to Use Real-Time Data on Solana](./use-real-time-data/pull-integration/solana#price-feed-accounts) for more information on price feed accounts. ## Feed Ids diff --git a/pages/price-feeds/core/use-real-time-data/push-integration.mdx b/pages/price-feeds/core/use-real-time-data/push-integration.mdx index 5a56ed69..428aefa4 100644 --- a/pages/price-feeds/core/use-real-time-data/push-integration.mdx +++ b/pages/price-feeds/core/use-real-time-data/push-integration.mdx @@ -58,7 +58,7 @@ contract SomeContract { ### SVM Developers building on SVM chains can use Price Feed Accounts to integrate Pyth using push integration. -The [SVM guide](../use-real-time-data/solana#price-feed-accounts) explains in detail how to integrate Pyth using Price Feed Accounts. +The [SVM guide](./pull-integration/solana#price-feed-accounts) explains in detail how to integrate Pyth using Price Feed Accounts. ### Aptos From 67691cf1cfbcc213237d14cda29773a7f2b32d65 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 20:08:31 +0000 Subject: [PATCH 2/2] Apply prettier formatting to redirect arrays Co-Authored-By: aditya@dourolabs.xyz --- next.config.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 4336650d..e694e328 100644 --- a/next.config.js +++ b/next.config.js @@ -142,12 +142,18 @@ const permanentRedirectArray = [ "/price-feeds/use-real-time-data/:path((?!pull-integration(?:/|$)).*)", "/price-feeds/use-real-time-data/pull-integration/:path", ], - ["/price-feeds/use-real-time-data", "/price-feeds/use-real-time-data/pull-integration"], + [ + "/price-feeds/use-real-time-data", + "/price-feeds/use-real-time-data/pull-integration", + ], [ "/price-feeds/core/use-real-time-data/:path((?!pull-integration(?:/|$)).*)", "/price-feeds/core/use-real-time-data/pull-integration/:path", ], - ["/price-feeds/core/use-real-time-data", "/price-feeds/core/use-real-time-data/pull-integration"], + [ + "/price-feeds/core/use-real-time-data", + "/price-feeds/core/use-real-time-data/pull-integration", + ], ["/benchmarks", "/price-feeds/use-historic-price-data"], [