@graphcommerce/magento-store 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
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.48
4
+
5
+ ## 9.1.0-canary.47
6
+
3
7
  ## 9.1.0-canary.46
4
8
 
5
9
  ## 9.1.0-canary.45
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-store",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.46",
5
+ "version": "9.1.0-canary.48",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.46",
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.46",
17
- "@graphcommerce/framer-utils": "^9.1.0-canary.46",
18
- "@graphcommerce/graphql": "^9.1.0-canary.46",
19
- "@graphcommerce/graphql-mesh": "^9.1.0-canary.46",
20
- "@graphcommerce/image": "^9.1.0-canary.46",
21
- "@graphcommerce/next-ui": "^9.1.0-canary.46",
22
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.46",
23
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.46",
15
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.48",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.48",
17
+ "@graphcommerce/framer-utils": "^9.1.0-canary.48",
18
+ "@graphcommerce/graphql": "^9.1.0-canary.48",
19
+ "@graphcommerce/graphql-mesh": "^9.1.0-canary.48",
20
+ "@graphcommerce/image": "^9.1.0-canary.48",
21
+ "@graphcommerce/next-ui": "^9.1.0-canary.48",
22
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.48",
23
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.48",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",
@@ -1,7 +1,7 @@
1
1
  import type { ParsedUrlQuery } from 'querystring'
2
2
  import type { ApolloClient, ApolloQueryResult, NormalizedCacheObject } from '@graphcommerce/graphql'
3
3
  import { flushMeasurePerf } from '@graphcommerce/graphql'
4
- import { isTypename, nonNullable, storefrontConfig } from '@graphcommerce/next-ui'
4
+ import { isTypename, nonNullable, revalidate, storefrontConfig } from '@graphcommerce/next-ui'
5
5
  import type { Redirect } from 'next'
6
6
  import type { HandleRedirectQuery, StoreConfigQuery } from '../graphql'
7
7
  import { HandleRedirectDocument } from '../graphql'
@@ -15,7 +15,7 @@ export type RedirectOr404Return = Promise<
15
15
  const notFound = (from: string, reason: string) => {
16
16
  flushMeasurePerf()
17
17
  console.info(`[redirectOrNotFound: /${from}] ${reason}`)
18
- return { notFound: true, revalidate: 60 * 20 } as const
18
+ return { notFound: true, revalidate: revalidate() } as const
19
19
  }
20
20
 
21
21
  const urlPrefix = (locale?: string) => {
@@ -33,7 +33,7 @@ export const redirectTo = (
33
33
  )
34
34
  return {
35
35
  redirect: { destination: `${urlPrefix(locale)}${to}`, permanent },
36
- revalidate: 60 * 20,
36
+ revalidate: revalidate(),
37
37
  }
38
38
  }
39
39
 
@@ -54,7 +54,7 @@ const redirect = (from: string, to: string, permanent: boolean, locale?: string)
54
54
  permanent = false
55
55
  }
56
56
 
57
- return { redirect: { destination, permanent }, revalidate: 60 * 20 }
57
+ return { redirect: { destination, permanent }, revalidate: revalidate() }
58
58
  }
59
59
 
60
60
  export async function redirectOrNotFound(