File tree Expand file tree Collapse file tree 6 files changed +26
-16
lines changed Expand file tree Collapse file tree 6 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ export default {
9
9
} ,
10
10
} ,
11
11
12
+ redirects : async ( ) => [
13
+ {
14
+ source : "/price-feeds/evm" ,
15
+ destination : "/price-feeds/evm/parsePriceFeedUpdates" ,
16
+ permanent : false ,
17
+ } ,
18
+ ] ,
12
19
webpack ( config ) {
13
20
config . module . rules . push ( {
14
21
test : / \. s v g $ / i,
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -31,10 +31,17 @@ export const Header = ({
31
31
>
32
32
< ul className = "contents" >
33
33
< li className = "contents" >
34
- < NavLink href = "/price-feeds/evm/getPrice" > Price Feeds</ NavLink >
34
+ < NavLink href = "/price-feeds/evm/getPriceNoOlderThan" >
35
+ Price Feeds
36
+ </ NavLink >
35
37
</ li >
36
38
< li className = "contents" >
37
- < NavLink href = "/benchmarks" > Benchmarks</ NavLink >
39
+ < NavLink
40
+ href = "https://benchmarks.pyth.network/docs#/"
41
+ target = "_blank"
42
+ >
43
+ Benchmarks
44
+ </ NavLink >
38
45
</ li >
39
46
< li className = "contents" >
40
47
< NavLink href = "/entropy" > Entropy</ NavLink >
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const baseClasses = "font-semibold text-sm py-2 px-3";
9
9
10
10
type NavLinkProps = Omit < ComponentProps < typeof Link > , "href" > & {
11
11
href : string ;
12
+ target ?: "_blank" | "_self" ;
12
13
} ;
13
14
14
15
export const NavLink = ( { className, ...props } : NavLinkProps ) => {
Original file line number Diff line number Diff line change @@ -29,7 +29,12 @@ export const Home = () => (
29
29
</ ProductLink >
30
30
</ li >
31
31
< li className = "contents" >
32
- < ProductLink icon = { Benchmarks } href = "/benchmarks" name = "Benchmarks" >
32
+ < ProductLink
33
+ icon = { Benchmarks }
34
+ href = "https://benchmarks.pyth.network/docs#/"
35
+ target = "_blank"
36
+ name = "Benchmarks"
37
+ >
33
38
Get historical market data from any Pyth feed for use in both on-
34
39
and off-chain applications
35
40
</ ProductLink >
@@ -49,6 +54,7 @@ export const Home = () => (
49
54
type ProductLinkProps = {
50
55
name : string ;
51
56
href : string ;
57
+ target ?: "_blank" | "_self" ;
52
58
children : string ;
53
59
icon : ElementType < SVGProps < SVGSVGElement > > ;
54
60
} ;
@@ -57,11 +63,13 @@ const ProductLink = ({
57
63
name,
58
64
children,
59
65
href,
66
+ target,
60
67
icon : Icon ,
61
68
} : ProductLinkProps ) => (
62
69
< Button
63
70
as = { Link }
64
71
href = { href }
72
+ target = { target }
65
73
gradient
66
74
className = "flex max-w-2xl flex-col items-center gap-2 p-6 text-center sm:flex-row sm:gap-6 sm:pr-12 sm:text-left"
67
75
>
You can’t perform that action at this time.
0 commit comments