@graphcommerce/framer-next-pages 3.1.0 → 3.1.1

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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1294](https://github.com/ho-nl/m2-pwa/pull/1294)
8
+ [`afb993244`](https://github.com/ho-nl/m2-pwa/commit/afb993244aabc8135ce54a79743cbf63bc5677d3)
9
+ Thanks [@paales](https://github.com/paales)! - Make sure the fallback handles localization
10
+ properly
11
+
3
12
  ## 3.1.0
4
13
 
5
14
  ### Minor Changes
@@ -107,7 +107,7 @@ export default function FramerNextPages(props: PagesProps) {
107
107
  fallback,
108
108
  fallback,
109
109
  { shallow: false },
110
- undefined,
110
+ router.locale,
111
111
  false,
112
112
  )
113
113
 
@@ -128,7 +128,22 @@ export default function FramerNextPages(props: PagesProps) {
128
128
 
129
129
  cancel = requestIdleCallback(() => setFallback(fbItem))
130
130
  } catch (e) {
131
- // Loading failed, we do nothing.
131
+ if (process.env.NODE_ENV !== 'production') {
132
+ console.log(
133
+ `%cTurn on "Preseve log on navigation" to see the error`,
134
+ 'color: blue; font-family:sans-serif; font-size: 20px',
135
+ )
136
+
137
+ console.error(
138
+ `@graphcommerce/framer-next-pages encountered loading the fallback.
139
+ This happens because the currently configured fallback '${fallback}'
140
+ or fallbackRoute '${fallbackRoute}' isn't correct.
141
+
142
+ Please make sure the fallbackRoute matches the filename of the index page you want to load. e.g. '/[...url]'
143
+ and pass it as a param in <FramerNextPages fallbackRoute='/[...url]' /> in your _app.tsx file.
144
+ `,
145
+ )
146
+ }
132
147
  }
133
148
  }
134
149
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/framer-next-pages",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.1.0",
5
+ "version": "3.1.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {