File tree 3 files changed +2
-6
lines changed
3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { isMobile } from '@/utils/isMobile';
5
5
import { headers } from 'next/headers' ;
6
6
import { notFound } from 'next/navigation' ;
7
7
8
- export const dynamic = 'force-dynamic' ;
9
-
10
8
export async function generateMetadata ( {
11
9
params,
12
10
} : { params : { pair : string } } ) {
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ export const metadata: Metadata = {
10
10
title : 'Markets' ,
11
11
} ;
12
12
13
- export const dynamic = 'force-dynamic' ;
14
-
15
13
export default async function Page ( ) {
16
14
const userAgent = headers ( ) . get ( 'user-agent' ) || '' ;
17
15
const mobile = isMobile ( userAgent ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const getChartData = async () => {
39
39
version : appConfig . client . sentioProcessorVersion ,
40
40
} ) ,
41
41
next : {
42
- revalidate : 300 , // Cache for 5 min
42
+ revalidate : 3600 , // Cache for 1h
43
43
} ,
44
44
} ) ;
45
45
@@ -73,7 +73,7 @@ export const getChartData = async () => {
73
73
version : appConfig . client . sentioProcessorVersion ,
74
74
} ) ,
75
75
next : {
76
- revalidate : 300 , // Cache for 5 min
76
+ revalidate : 3600 , // Cache for 1h
77
77
} ,
78
78
} ) ;
79
79
You can’t perform that action at this time.
0 commit comments