@graphcommerce/docs 9.1.0-canary.46 → 9.1.0-canary.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -54,7 +54,7 @@ export const getStaticProps: GetPageStaticProps = async ({ locale }) => {
|
|
|
54
54
|
up: { href: '/', title: 'Home' },
|
|
55
55
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
56
56
|
},
|
|
57
|
-
revalidate:
|
|
57
|
+
revalidate: revalidate(),
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
```
|
|
@@ -155,7 +155,7 @@ return {
|
|
|
155
155
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
156
156
|
up,
|
|
157
157
|
},
|
|
158
|
-
revalidate:
|
|
158
|
+
revalidate: revalidate(),
|
|
159
159
|
}
|
|
160
160
|
```
|
|
161
161
|
|
package/getting-started/pages.md
CHANGED
|
@@ -66,8 +66,8 @@ import {
|
|
|
66
66
|
LayoutNavigationProps,
|
|
67
67
|
} from '../../components'
|
|
68
68
|
import {
|
|
69
|
-
graphqlSsrClient,
|
|
70
69
|
graphqlSharedClient,
|
|
70
|
+
graphqlSsrClient,
|
|
71
71
|
} from '../../lib/graphql/graphqlSsrClient'
|
|
72
72
|
|
|
73
73
|
type GetPageStaticProps = GetStaticProps<LayoutNavigationProps>
|
|
@@ -108,7 +108,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
108
108
|
...(await layout).data,
|
|
109
109
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
110
110
|
},
|
|
111
|
-
revalidate:
|
|
111
|
+
revalidate: revalidate(),
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
```
|
|
@@ -168,8 +168,8 @@ import {
|
|
|
168
168
|
RowRenderer,
|
|
169
169
|
} from '../../components'
|
|
170
170
|
import {
|
|
171
|
-
graphqlSsrClient,
|
|
172
171
|
graphqlSharedClient,
|
|
172
|
+
graphqlSsrClient,
|
|
173
173
|
} from '../../lib/graphql/graphqlSsrClient'
|
|
174
174
|
|
|
175
175
|
type Props = HygraphPagesQuery
|
|
@@ -221,7 +221,8 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
221
221
|
fetchPolicy: 'cache-first',
|
|
222
222
|
})
|
|
223
223
|
|
|
224
|
-
if (!(await page).data.pages?.[0])
|
|
224
|
+
if (!(await page).data.pages?.[0])
|
|
225
|
+
return { notFound: true, revalidate: revalidate() }
|
|
225
226
|
|
|
226
227
|
return {
|
|
227
228
|
props: {
|
|
@@ -229,7 +230,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
229
230
|
...(await layout).data,
|
|
230
231
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
231
232
|
},
|
|
232
|
-
revalidate:
|
|
233
|
+
revalidate: revalidate(),
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
236
|
```
|
|
@@ -271,7 +272,8 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
271
272
|
fetchPolicy: 'cache-first',
|
|
272
273
|
})
|
|
273
274
|
|
|
274
|
-
if (!(await page).data.pages?.[0])
|
|
275
|
+
if (!(await page).data.pages?.[0])
|
|
276
|
+
return { notFound: true, revalidate: revalidate() }
|
|
275
277
|
|
|
276
278
|
return {
|
|
277
279
|
props: {
|
|
@@ -279,7 +281,7 @@ export const getStaticProps: GetPageStaticProps = async (context) => {
|
|
|
279
281
|
...(await layout).data,
|
|
280
282
|
apolloState: await conf.then(() => client.cache.extract()),
|
|
281
283
|
},
|
|
282
|
-
revalidate:
|
|
284
|
+
revalidate: revalidate(),
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
287
|
```
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.48",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.48"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|