File tree Expand file tree Collapse file tree 14 files changed +226
-337
lines changed Expand file tree Collapse file tree 14 files changed +226
-337
lines changed Original file line number Diff line number Diff line change 1
1
export { Root as default } from "../components/Root" ;
2
2
export { metadata , viewport } from "../metadata" ;
3
+
4
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change 1
1
import type { Metadata } from "next" ;
2
2
3
- import { Cluster , getFeeds } from "../../../services/pyth" ;
4
3
export { PriceFeedLayout as default } from "../../../components/PriceFeed/layout" ;
5
4
6
5
export const metadata : Metadata = {
7
6
title : "Price Feeds" ,
8
7
} ;
9
8
10
- export const generateStaticParams = async ( ) => {
11
- const feeds = await getFeeds ( Cluster . Pythnet ) ;
12
- return feeds . map ( ( { symbol } ) => ( { slug : encodeURIComponent ( symbol ) } ) ) ;
13
- } ;
9
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change 1
1
export { ChartPage as default } from "../../../components/PriceFeed/chart-page" ;
2
+
3
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change 1
1
export { Publishers as default } from "../../../../components/PriceFeed/publishers" ;
2
+
3
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ export { PriceFeeds as default } from "../../components/PriceFeeds";
5
5
export const metadata : Metadata = {
6
6
title : "Price Feeds" ,
7
7
} ;
8
+
9
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change 1
1
import type { Metadata } from "next" ;
2
2
3
3
export { PublishersLayout as default } from "../../../components/Publisher/layout" ;
4
- import { getPublishers } from "../../../services/clickhouse" ;
5
4
6
5
export const metadata : Metadata = {
7
6
title : "Publishers" ,
8
7
} ;
9
8
10
- export const generateStaticParams = async ( ) => {
11
- const publishers = await getPublishers ( ) ;
12
- return publishers . map ( ( { key } ) => ( { key } ) ) ;
13
- } ;
9
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change 1
1
export { Performance as default } from "../../../components/Publisher/performance" ;
2
+
3
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change 1
1
export { PriceFeeds as default } from "../../../../components/Publisher/price-feeds" ;
2
+
3
+ export const revalidate = 3600 ;
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ export { Publishers as default } from "../../components/Publishers";
5
5
export const metadata : Metadata = {
6
6
title : "Publishers" ,
7
7
} ;
8
+
9
+ export const revalidate = 3600 ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments