From d34b3e3c3374855056ab6d43a6cc4b2b4af5b104 Mon Sep 17 00:00:00 2001 From: alexcambose Date: Tue, 21 Oct 2025 12:20:49 +0100 Subject: [PATCH 1/3] fix: redirects --- next.config.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/next.config.js b/next.config.js index c5e771ce..21642192 100644 --- a/next.config.js +++ b/next.config.js @@ -126,8 +126,14 @@ const permanentRedirectArray = [ // Explicitly map legacy lazer paths under /price-feeds to Pro - MUST come before general price-feeds redirects ["/price-feeds/lazer", "/price-feeds/pro"], ["/price-feeds/lazer/:path*", "/price-feeds/pro/:path*"], - - ["/price-feeds/:path((?!core|pro).*?)", "/price-feeds/core/:path*"], + // some other price feed redirects + ["/price-feeds/sponsored-feeds", "/price-feeds/push-feeds"], + [ + "/price-feeds/use-real-time-data/:path((?!pull-integration(?:/|$)).*)", + "/price-feeds/use-real-time-data/pull-integration/:path", + ], + // generic price feeds redirects + ["/price-feeds/:path((?!core|pro|push-feeds|use-real-time-data).*?)", "/price-feeds/core/:path*"], ["/benchmarks", "/price-feeds/use-historic-price-data"], [ @@ -137,12 +143,7 @@ const permanentRedirectArray = [ ["/benchmarks/api-instances", "/price-feeds/api-reference/"], ["/benchmarks/rate-limits", "/price-feeds/rate-limits/"], - ["/price-feeds/sponsored-feeds", "/price-feeds/push-feeds"], - [ - "/price-feeds/use-real-time-data/:path((?!pull-integration(?:/|$)).*)", - "/price-feeds/use-real-time-data/pull-integration/:path", - ], ]; /** @type {import('next').NextConfig} */ From 376521a56441c267d5680b51d7550e4806e0ef31 Mon Sep 17 00:00:00 2001 From: alexcambose Date: Tue, 21 Oct 2025 12:26:00 +0100 Subject: [PATCH 2/3] fix: formatting --- next.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 21642192..2a7b0abd 100644 --- a/next.config.js +++ b/next.config.js @@ -133,7 +133,10 @@ const permanentRedirectArray = [ "/price-feeds/use-real-time-data/pull-integration/:path", ], // generic price feeds redirects - ["/price-feeds/:path((?!core|pro|push-feeds|use-real-time-data).*?)", "/price-feeds/core/:path*"], + [ + "/price-feeds/:path((?!core|pro|push-feeds|use-real-time-data).*?)", + "/price-feeds/core/:path*", + ], ["/benchmarks", "/price-feeds/use-historic-price-data"], [ From cdbf62487e75aa90ea68c34a2cd8179ead700220 Mon Sep 17 00:00:00 2001 From: alexcambose Date: Tue, 21 Oct 2025 12:27:13 +0100 Subject: [PATCH 3/3] fix: formatting again --- next.config.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/next.config.js b/next.config.js index 2a7b0abd..3e07669c 100644 --- a/next.config.js +++ b/next.config.js @@ -145,8 +145,6 @@ const permanentRedirectArray = [ ], ["/benchmarks/api-instances", "/price-feeds/api-reference/"], ["/benchmarks/rate-limits", "/price-feeds/rate-limits/"], - - ]; /** @type {import('next').NextConfig} */