Skip to content

Commit d34b3e3

Browse files
committed
fix: redirects
1 parent 01e363c commit d34b3e3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

next.config.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,14 @@ const permanentRedirectArray = [
126126
// Explicitly map legacy lazer paths under /price-feeds to Pro - MUST come before general price-feeds redirects
127127
["/price-feeds/lazer", "/price-feeds/pro"],
128128
["/price-feeds/lazer/:path*", "/price-feeds/pro/:path*"],
129-
130-
["/price-feeds/:path((?!core|pro).*?)", "/price-feeds/core/:path*"],
129+
// some other price feed redirects
130+
["/price-feeds/sponsored-feeds", "/price-feeds/push-feeds"],
131+
[
132+
"/price-feeds/use-real-time-data/:path((?!pull-integration(?:/|$)).*)",
133+
"/price-feeds/use-real-time-data/pull-integration/:path",
134+
],
135+
// generic price feeds redirects
136+
["/price-feeds/:path((?!core|pro|push-feeds|use-real-time-data).*?)", "/price-feeds/core/:path*"],
131137

132138
["/benchmarks", "/price-feeds/use-historic-price-data"],
133139
[
@@ -137,12 +143,7 @@ const permanentRedirectArray = [
137143
["/benchmarks/api-instances", "/price-feeds/api-reference/"],
138144
["/benchmarks/rate-limits", "/price-feeds/rate-limits/"],
139145

140-
["/price-feeds/sponsored-feeds", "/price-feeds/push-feeds"],
141146

142-
[
143-
"/price-feeds/use-real-time-data/:path((?!pull-integration(?:/|$)).*)",
144-
"/price-feeds/use-real-time-data/pull-integration/:path",
145-
],
146147
];
147148

148149
/** @type {import('next').NextConfig} */

0 commit comments

Comments
 (0)