@graphcommerce/docs 10.1.0-canary.4 → 10.1.0-canary.40

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,77 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.1.0-canary.40
4
+
5
+ ## 10.1.0-canary.39
6
+
7
+ ## 10.1.0-canary.38
8
+
9
+ ## 10.1.0-canary.37
10
+
11
+ ## 10.1.0-canary.36
12
+
13
+ ## 10.1.0-canary.35
14
+
15
+ ## 10.1.0-canary.34
16
+
17
+ ## 10.1.0-canary.33
18
+
19
+ ## 10.1.0-canary.32
20
+
21
+ ## 10.1.0-canary.31
22
+
23
+ ## 10.1.0-canary.30
24
+
25
+ ## 10.1.0-canary.29
26
+
27
+ ## 10.1.0-canary.28
28
+
29
+ ## 10.1.0-canary.27
30
+
31
+ ## 10.1.0-canary.26
32
+
33
+ ## 10.1.0-canary.25
34
+
35
+ ## 10.1.0-canary.24
36
+
37
+ ## 10.1.0-canary.23
38
+
39
+ ## 10.1.0-canary.22
40
+
41
+ ## 10.1.0-canary.21
42
+
43
+ ## 10.1.0-canary.20
44
+
45
+ ## 10.1.0-canary.19
46
+
47
+ ## 10.1.0-canary.18
48
+
49
+ ## 10.1.0-canary.17
50
+
51
+ ## 10.1.0-canary.16
52
+
53
+ ## 10.1.0-canary.15
54
+
55
+ ## 10.1.0-canary.14
56
+
57
+ ## 10.1.0-canary.13
58
+
59
+ ## 10.1.0-canary.12
60
+
61
+ ## 10.1.0-canary.11
62
+
63
+ ## 10.1.0-canary.10
64
+
65
+ ## 10.1.0-canary.9
66
+
67
+ ## 10.1.0-canary.8
68
+
69
+ ## 10.1.0-canary.7
70
+
71
+ ## 10.1.0-canary.6
72
+
73
+ ## 10.1.0-canary.5
74
+
3
75
  ## 10.1.0-canary.4
4
76
 
5
77
  ## 10.1.0-canary.3
package/framework/mesh.md CHANGED
@@ -92,3 +92,35 @@ To make sure changes are picked up during development set the config value
92
92
  `graphqlMeshEditMode: true` in your graphcommerce.config.js or set the env
93
93
  variable `GC_GRAPHQL_MESH_EDIT_MODE=1`. This _will_ make the frontend
94
94
  considerably slower.
95
+
96
+ ## Routing Magento traffic over an internal network
97
+
98
+ When the frontend runs next to Magento — e.g. both in the same Kubernetes
99
+ cluster — the mesh's server-side Magento requests (GraphQL and REST) can be
100
+ routed directly to an internal Service instead of hairpinning over the public
101
+ load balancer. Set in the **runtime** environment (e.g. a Kubernetes
102
+ ConfigMap):
103
+
104
+ ```
105
+ GC_MAGENTO_ENDPOINT_SERVER=http://varnish.magento-namespace.svc.cluster.local
106
+ ```
107
+
108
+ Every request whose URL starts with the origin of `GC_MAGENTO_ENDPOINT` is
109
+ rewritten to this origin, so both the GraphQL endpoint and the REST endpoint
110
+ are covered. `GC_MAGENTO_ENDPOINT` itself stays the public URL: it keeps
111
+ feeding build-time schema introspection, `images.remotePatterns` and the media
112
+ URLs Magento generates. The rewrite also sends `X-Forwarded-Proto: https`,
113
+ which the TLS-terminating proxy would normally add — Magento needs it to keep
114
+ generating `https://` URLs.
115
+
116
+ Caveats:
117
+
118
+ - Both `GC_MAGENTO_ENDPOINT_SERVER` and `GC_MAGENTO_ENDPOINT` must be present
119
+ in the runtime environment; the rewrite happens per request at runtime.
120
+ - Do **not** set `GC_MAGENTO_ENDPOINT_SERVER` in the build environment: schema
121
+ introspection (`gc-mesh build`) and static generation run where the internal
122
+ endpoint is typically not reachable. Unset, the feature is a no-op.
123
+ - Point it at the Varnish service (not the webserver directly) to keep
124
+ Magento's GraphQL full-page cache in the path.
125
+ - When a NetworkPolicy guards the Magento namespace, allow ingress from the
126
+ frontend namespace to the Varnish pods.
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.1.0-canary.4",
5
+ "version": "10.1.0-canary.40",
6
6
  "sideEffects": true,
7
7
  "peerDependencies": {
8
- "@graphcommerce/prettier-config-pwa": "^10.1.0-canary.4"
8
+ "@graphcommerce/prettier-config-pwa": "^10.1.0-canary.40"
9
9
  },
10
10
  "prettier": "@graphcommerce/prettier-config-pwa"
11
11
  }