We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1a2bc commit 3f66b00Copy full SHA for 3f66b00
src/app/earn/layout.tsx
@@ -17,7 +17,9 @@ export const metadata = {
17
}
18
19
export default async function Layout({ children }: LayoutProps) {
20
- const productsResponse = await getApiV2ProductsEarn()
+ const productsResponse = await getApiV2ProductsEarn({
21
+ headers: { 'Cache-Control': 'no-cache' },
22
+ })
23
const products =
24
productsResponse.status === 200
25
? productsResponse.data.sort((a, b) => a.order - b.order)
@@ -54,3 +56,5 @@ export default async function Layout({ children }: LayoutProps) {
54
56
</div>
55
57
)
58
59
+
60
+export const dynamic = 'force-dynamic'
0 commit comments