@graphcommerce/docs 9.0.0-canary.72 → 9.0.0-canary.73
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 +2 -0
- package/framework/config.md +31 -8
- package/hygraph/cli.md +20 -14
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/framework/config.md
CHANGED
|
@@ -85,6 +85,22 @@ Below is a list of all possible configurations that can be set by GraphCommerce.
|
|
|
85
85
|
|
|
86
86
|
### GraphCommerceConfig
|
|
87
87
|
|
|
88
|
+
#### algoliaApplicationId: string (required)
|
|
89
|
+
|
|
90
|
+
Configure your Algolia application ID.
|
|
91
|
+
|
|
92
|
+
Stores > Configuration > Algolia Search > Credentials and Basic Setup > Application ID
|
|
93
|
+
|
|
94
|
+
#### algoliaIndexNamePrefix: string (required)
|
|
95
|
+
|
|
96
|
+
Stores > Configuration > Algolia Search > Credentials and Basic Setup > Index name prefix
|
|
97
|
+
|
|
98
|
+
#### algoliaSearchOnlyApiKey: string (required)
|
|
99
|
+
|
|
100
|
+
Configure your Algolia Search Only API Key.
|
|
101
|
+
|
|
102
|
+
Stores > Configuration > Algolia Search > Credentials and Basic Setup > Search-only (public) API key
|
|
103
|
+
|
|
88
104
|
#### canonicalBaseUrl: string (required)
|
|
89
105
|
|
|
90
106
|
The canonical base URL is used for SEO purposes.
|
|
@@ -119,6 +135,12 @@ Values: 245, 246, 247 for Magento 2.4.5, 2.4.6, 2.4.7 respectively.
|
|
|
119
135
|
|
|
120
136
|
All storefront configuration for the project
|
|
121
137
|
|
|
138
|
+
#### algoliaCatalogEnabled: boolean
|
|
139
|
+
|
|
140
|
+
By default the catalog will not use algolia. Set this to true to enable Algolia for the catalog.
|
|
141
|
+
|
|
142
|
+
#### algoliaCustomerGroupPricingEnabled: boolean
|
|
143
|
+
|
|
122
144
|
#### breadcrumbs: boolean = `false`
|
|
123
145
|
|
|
124
146
|
Configuration for the SidebarGallery component
|
|
@@ -243,17 +265,15 @@ This value is required even if you are configuring different values for each loc
|
|
|
243
265
|
|
|
244
266
|
Hygraph Management API. **Only used for migrations.**
|
|
245
267
|
|
|
268
|
+
Optional: If the hygraphEndpoint is configured with the 'High Performance Content
|
|
269
|
+
API', this field is not required.
|
|
270
|
+
|
|
246
271
|
#### hygraphProjectId: string
|
|
247
272
|
|
|
248
273
|
Hygraph Project ID. **Only used for migrations.**
|
|
249
274
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
Content API. **Only used for migrations.**
|
|
253
|
-
|
|
254
|
-
> Regular read & write endpoint that allows querying and mutating data in your project.
|
|
255
|
-
|
|
256
|
-
Project settings -> API Access -> Content API
|
|
275
|
+
Optional: If the hygraphEndpoint is configured with the 'High Performance Content
|
|
276
|
+
API', this field is not required.
|
|
257
277
|
|
|
258
278
|
#### hygraphWriteAccessToken: string
|
|
259
279
|
|
|
@@ -282,7 +302,6 @@ Project settings -> API Access -> Permanent Auth Tokens
|
|
|
282
302
|
- Can see schema view
|
|
283
303
|
|
|
284
304
|
```
|
|
285
|
-
GC_HYGRAPH_WRITE_ACCESS_ENDPOINT="https://...hygraph.com/v2/..."
|
|
286
305
|
GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
|
|
287
306
|
yarn graphcommerce hygraph-migrate
|
|
288
307
|
```
|
|
@@ -390,6 +409,10 @@ Examples:
|
|
|
390
409
|
- en-us
|
|
391
410
|
- b2b-us
|
|
392
411
|
|
|
412
|
+
#### algoliaIndexNamePrefix: string
|
|
413
|
+
|
|
414
|
+
Stores > Configuration > Algolia Search > Credentials and Basic Setup > Index name prefix
|
|
415
|
+
|
|
393
416
|
#### canonicalBaseUrl: string
|
|
394
417
|
|
|
395
418
|
The canonical base URL is used for SEO purposes.
|
package/hygraph/cli.md
CHANGED
|
@@ -50,18 +50,24 @@ The following steps are needed to utilize this tool:
|
|
|
50
50
|
- Can see schema view
|
|
51
51
|
5. Add this new token to your env file:
|
|
52
52
|
`GC_HYGRAPH_WRITE_ACCESS_TOKEN="{YOUR_WRITE_ACCESS_TOKEN}"`
|
|
53
|
-
2.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
`GC_HYGRAPH_WRITE_ACCESS_ENDPOINT="{YOUR_WRITE_ACCESS_ENDPOINT}"`
|
|
57
|
-
3. Add your hygraphProjectId to your env file like this:
|
|
58
|
-
1. Copy the project ID from the URL when logged in
|
|
59
|
-
`https://app.hygraph.com/PROJECT_ID_IS_HERE/master`
|
|
60
|
-
2. Add the project ID to your env file:
|
|
61
|
-
`GC_HYGRAPH_PROJECT_ID="{YOUR_PROJECT_ID}"`
|
|
62
|
-
4. Add your hygraphManagementApi to your env file like this:
|
|
63
|
-
1. Copy the Management API URL and add to your env file: `GC_HYGRAPH_MANAGEMENT_API="{YOUR_MANAGEMENT_API}"`
|
|
64
|
-
5. Run `yarn graphcommerce hygraph-migrate`
|
|
65
|
-
6. Select the migration you want to run and press enter.
|
|
66
|
-
7. The migrations should now be applied, check your Hygraph Schema if changes
|
|
53
|
+
2. Run `yarn graphcommerce hygraph-migrate`
|
|
54
|
+
3. Select the migration you want to run and press enter.
|
|
55
|
+
4. The migrations should now be applied, check your Hygraph Schema if changes
|
|
67
56
|
are made.
|
|
57
|
+
|
|
58
|
+
### Addtional config
|
|
59
|
+
|
|
60
|
+
These configurations should not be necessary and can be deduced from the
|
|
61
|
+
hygraphEndpoint URL. This allows you to override them in case something goes
|
|
62
|
+
wrong.
|
|
63
|
+
|
|
64
|
+
Before adding these make sure you've configure the 'High Performance Content
|
|
65
|
+
API' als your hygraphEndpoint.
|
|
66
|
+
|
|
67
|
+
- Add your hygraphProjectId to your env file like this:
|
|
68
|
+
1. Settings > Project > Id
|
|
69
|
+
2. Add the project ID to your env file:
|
|
70
|
+
`GC_HYGRAPH_PROJECT_ID="{YOUR_PROJECT_ID}"`
|
|
71
|
+
- Add your hygraphManagementApi to your env file like this:
|
|
72
|
+
1. Copy the Management API URL and add to your env file:
|
|
73
|
+
`GC_HYGRAPH_MANAGEMENT_API="{YOUR_MANAGEMENT_API}"`
|
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.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.73",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.73"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|