@graphcommerce/docs 10.0.0-canary.68 → 10.0.0-canary.72
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 +8 -0
- package/framework/config.md +0 -20
- package/getting-started/readme.md +2 -2
- package/package.json +2 -2
- package/upgrading/readme.md +3 -0
package/CHANGELOG.md
CHANGED
package/framework/config.md
CHANGED
|
@@ -94,14 +94,6 @@ Examples:
|
|
|
94
94
|
- https://example.com/en
|
|
95
95
|
- https://example.com/en-US
|
|
96
96
|
|
|
97
|
-
#### hygraphEndpoint: string (required)
|
|
98
|
-
|
|
99
|
-
The Hygraph endpoint.
|
|
100
|
-
|
|
101
|
-
> Read-only endpoint that allows low latency and high read-throughput content delivery.
|
|
102
|
-
|
|
103
|
-
Project settings -> API Access -> High Performance Read-only Content API
|
|
104
|
-
|
|
105
97
|
#### magentoEndpoint: string (required)
|
|
106
98
|
|
|
107
99
|
GraphQL Magento endpoint.
|
|
@@ -205,14 +197,6 @@ Datalayer config
|
|
|
205
197
|
|
|
206
198
|
Debug configuration for GraphCommerce
|
|
207
199
|
|
|
208
|
-
#### demoMode: boolean = `true`
|
|
209
|
-
|
|
210
|
-
Enables some demo specific code that is probably not useful for a project:
|
|
211
|
-
|
|
212
|
-
- Adds the "BY GC" to the product list items.
|
|
213
|
-
- Adds "dominant_color" attribute swatches to the product list items.
|
|
214
|
-
- Creates a big list items in the product list.
|
|
215
|
-
|
|
216
200
|
#### enableGuestCheckoutLogin: boolean
|
|
217
201
|
|
|
218
202
|
Enable Guest Checkout Login:
|
|
@@ -491,10 +475,6 @@ Locale specific google reCAPTCHA key.
|
|
|
491
475
|
|
|
492
476
|
The Google Tagmanager ID to be used per locale.
|
|
493
477
|
|
|
494
|
-
#### hygraphLocales: string[]
|
|
495
|
-
|
|
496
|
-
Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks.
|
|
497
|
-
|
|
498
478
|
#### linguiLocale: string
|
|
499
479
|
|
|
500
480
|
Custom locale used to load the .po files. Must be a valid locale, also used for Intl functions.
|
|
@@ -61,8 +61,8 @@ https://user-images.githubusercontent.com/1251986/227236765-503ccaac-6499-48df-b
|
|
|
61
61
|
## Page routing
|
|
62
62
|
|
|
63
63
|
GraphCommerce uses Next.js file-based
|
|
64
|
-
[page routing ↗](https://nextjs.org/docs/routing/introduction). The files
|
|
65
|
-
|
|
64
|
+
[page routing ↗](https://nextjs.org/docs/routing/introduction). The files inside
|
|
65
|
+
the `📁 /pages` directory handle routing. Modify these files to meet your
|
|
66
66
|
requirements or [build a custom page](./pages.md).
|
|
67
67
|
|
|
68
68
|
- Product pages: `📄 /p/[...url].tsx`
|
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": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.72",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|
package/upgrading/readme.md
CHANGED
|
@@ -74,6 +74,7 @@ packages:
|
|
|
74
74
|
|
|
75
75
|
- `rm yarn.lock && yarn` Remove lock and install the dependencies
|
|
76
76
|
- `yarn codegen` Converts all .graphql files to typescript files
|
|
77
|
+
- `rm -r .next`
|
|
77
78
|
- `yarn dev` Run the app
|
|
78
79
|
|
|
79
80
|
### Resolving diff issues
|
|
@@ -106,6 +107,8 @@ After resolving the diff issues, manually process upgrade instructions:
|
|
|
106
107
|
|
|
107
108
|
- [Upgrading to GraphCommerce 5 to 6](../upgrading/graphcommerce-5-to-6.md)
|
|
108
109
|
- [Upgrading to GraphCommerce 6 to 7](../upgrading/graphcommerce-6-to-7.md)
|
|
110
|
+
- [Upgrading to GraphCommerce 7 to 8](../upgrading/graphcommerce-7-to-8.md)
|
|
111
|
+
- [Upgrading to GraphCommerce 8 to 9](../upgrading/graphcommerce-8-to-9.md)
|
|
109
112
|
- [Upgrading to GraphCommerce 9 to 10](../upgrading/graphcommerce-9-to-10.md)
|
|
110
113
|
|
|
111
114
|
Run and validate your local environment:
|