Skip to content

Commit 7a12e9c

Browse files
committed
Fix error "'The unstable_revalidate property is available for general use"
1 parent 4e0094c commit 7a12e9c

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ export async function getStaticProps() {
3636
loading: loading,
3737
networkStatus: networkStatus,
3838
},
39-
unstable_revalidate: 10,
39+
revalidate: 10,
4040
};
4141
}

pages/kategori/[slug].js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const Produkt = ({ categoryName, products }) => {
2020
{products ? (
2121
<>
2222
<PageTitle title={categoryName} marginleft="50" />
23-
2423
<IndexProducts products={products} />
2524
</>
2625
) : (

pages/kategorier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ export async function getStaticProps() {
4949
props: {
5050
categories: result.data.productCategories.nodes,
5151
},
52-
unstable_revalidate: 10,
52+
revalidate: 10,
5353
};
5454
}

pages/produkter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ export async function getStaticProps() {
5252
props: {
5353
products: result.data.products.nodes,
5454
},
55-
unstable_revalidate: 10,
55+
revalidate: 10,
5656
};
5757
}

0 commit comments

Comments
 (0)