@graphcommerce/docs 9.0.0-canary.72 → 9.0.0-canary.74
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 +4 -0
- package/framework/config.md +5 -8
- package/hygraph/cli.md +20 -14
- package/magento/algolia.md +6 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/framework/config.md
CHANGED
|
@@ -243,17 +243,15 @@ This value is required even if you are configuring different values for each loc
|
|
|
243
243
|
|
|
244
244
|
Hygraph Management API. **Only used for migrations.**
|
|
245
245
|
|
|
246
|
+
Optional: If the hygraphEndpoint is configured with the 'High Performance Content
|
|
247
|
+
API', this field is not required.
|
|
248
|
+
|
|
246
249
|
#### hygraphProjectId: string
|
|
247
250
|
|
|
248
251
|
Hygraph Project ID. **Only used for migrations.**
|
|
249
252
|
|
|
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
|
|
253
|
+
Optional: If the hygraphEndpoint is configured with the 'High Performance Content
|
|
254
|
+
API', this field is not required.
|
|
257
255
|
|
|
258
256
|
#### hygraphWriteAccessToken: string
|
|
259
257
|
|
|
@@ -282,7 +280,6 @@ Project settings -> API Access -> Permanent Auth Tokens
|
|
|
282
280
|
- Can see schema view
|
|
283
281
|
|
|
284
282
|
```
|
|
285
|
-
GC_HYGRAPH_WRITE_ACCESS_ENDPOINT="https://...hygraph.com/v2/..."
|
|
286
283
|
GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
|
|
287
284
|
yarn graphcommerce hygraph-migrate
|
|
288
285
|
```
|
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/magento/algolia.md
CHANGED
|
@@ -16,10 +16,12 @@ Make sure the Magento 2 module is correctly installed and working.
|
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
18
|
const config = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
algolia: {
|
|
20
|
+
applicationId: 'your-algolia-application-id', // Stores > Configuration > Algolia Search > Credentials and Basic Setup > Application ID
|
|
21
|
+
indexNamePrefix: 'default_', // Stores > Configuration > Algolia Search > Credentials and Basic Setup > Index name prefix
|
|
22
|
+
searchOnlyApiKey: 'blabla', // Stores > Configuration > Algolia Search > Credentials and Basic Setup > Search-only (public) API key
|
|
23
|
+
catalogEnabled: false, // start with search and if everything works as expected, you can move on to the catalog.
|
|
24
|
+
},
|
|
23
25
|
}
|
|
24
26
|
```
|
|
25
27
|
|
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.74",
|
|
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.74"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|