@graphcommerce/next-config 6.0.0-canary.26 → 6.0.0-canary.28
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 +484 -0
- package/Config.graphqls +179 -0
- package/__tests__/config/utils/__snapshots__/mergeEnvIntoConfig.ts.snap +744 -0
- package/__tests__/config/utils/configToImportMeta.ts +34 -0
- package/__tests__/config/utils/mergeEnvIntoConfig.ts +105 -0
- package/__tests__/config/utils/rewriteLegancyEnv.ts +83 -0
- package/__tests__/interceptors/findPlugins.ts +199 -0
- package/__tests__/interceptors/generateInterceptors.ts +256 -0
- package/__tests__/interceptors/writeInterceptors.ts +36 -0
- package/__tests__/utils/resolveDependenciesSync.ts +93 -0
- package/dist/config/commands/exportConfig.js +11 -0
- package/dist/config/{generateConfig.js → commands/generateConfig.js} +3 -3
- package/dist/config/demoConfig.js +18 -0
- package/dist/config/index.js +2 -1
- package/dist/config/loadConfig.js +23 -10
- package/dist/config/utils/exportConfigToEnv.js +29 -0
- package/dist/config/utils/mergeEnvIntoConfig.js +18 -14
- package/dist/config/utils/rewriteLegacyEnv.js +7 -1
- package/dist/generated/config.js +3 -3
- package/package.json +7 -11
- package/src/config/commands/exportConfig.ts +8 -0
- package/src/config/{generateConfig.ts → commands/generateConfig.ts} +3 -3
- package/src/config/demoConfig.ts +17 -0
- package/src/config/index.ts +3 -1
- package/src/config/loadConfig.ts +27 -10
- package/src/config/utils/exportConfigToEnv.ts +31 -0
- package/src/config/utils/mergeEnvIntoConfig.ts +17 -14
- package/src/config/utils/rewriteLegacyEnv.ts +5 -2
- package/src/generated/config.ts +84 -12
- package/tsconfig.json +13 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## 6.0.0-canary.28
|
|
4
|
+
|
|
5
|
+
## 6.0.0-canary.27
|
|
6
|
+
|
|
7
|
+
## 6.0.0-canary.26
|
|
8
|
+
|
|
9
|
+
## 6.0.0-canary.25
|
|
10
|
+
|
|
11
|
+
## 6.0.0-canary.24
|
|
12
|
+
|
|
13
|
+
## 6.0.0-canary.23
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#1810](https://github.com/graphcommerce-org/graphcommerce/pull/1810) [`543c5d5b2`](https://github.com/graphcommerce-org/graphcommerce/commit/543c5d5b2b6f29c1f6a0a405524d4cc86f399596) - Added `limitSsg: Boolean` configuration option to limit the getStaticPaths generation during build. This is useful to make quick deployments on preview environments. ([@paales](https://github.com/paales))
|
|
18
|
+
|
|
19
|
+
## 6.0.0-canary.22
|
|
20
|
+
|
|
21
|
+
## 6.0.0-canary.21
|
|
22
|
+
|
|
23
|
+
## 6.0.0-canary.20
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [#1786](https://github.com/graphcommerce-org/graphcommerce/pull/1786) [`b76679204`](https://github.com/graphcommerce-org/graphcommerce/commit/b766792049e1e6ebe45671c0b36e78746ef159e2) - Added a new graphcommerce.config.ts which can be accessed with import.mete.graphCommerce.myConfig ([@paales](https://github.com/paales))
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#1786](https://github.com/graphcommerce-org/graphcommerce/pull/1786) [`fff2420c6`](https://github.com/graphcommerce-org/graphcommerce/commit/fff2420c62472edfd2c3d6eba1012dbf48efa3db) - Added configuration for webpackDuplicatesPlugin ([@paales](https://github.com/paales))
|
|
32
|
+
|
|
33
|
+
## 5.2.0-canary.19
|
|
34
|
+
|
|
35
|
+
## 5.2.0-canary.18
|
|
36
|
+
|
|
37
|
+
## 5.2.0-canary.17
|
|
38
|
+
|
|
39
|
+
## 5.2.0-canary.16
|
|
40
|
+
|
|
41
|
+
## 5.2.0-canary.15
|
|
42
|
+
|
|
43
|
+
## 5.2.0-canary.14
|
|
44
|
+
|
|
45
|
+
## 5.2.0-canary.13
|
|
46
|
+
|
|
47
|
+
## 5.2.0-canary.12
|
|
48
|
+
|
|
49
|
+
## 5.2.0-canary.11
|
|
50
|
+
|
|
51
|
+
## 5.2.0-canary.10
|
|
52
|
+
|
|
53
|
+
## 5.2.0-canary.9
|
|
54
|
+
|
|
55
|
+
## 5.2.0-canary.8
|
|
56
|
+
|
|
57
|
+
## 5.2.0-canary.7
|
|
58
|
+
|
|
59
|
+
## 5.2.0-canary.6
|
|
60
|
+
|
|
61
|
+
## 5.2.0-canary.5
|
|
62
|
+
|
|
63
|
+
## 5.2.0-canary.4
|
|
64
|
+
|
|
65
|
+
## 5.2.0-canary.3
|
|
66
|
+
|
|
67
|
+
### Minor Changes
|
|
68
|
+
|
|
69
|
+
- [#1766](https://github.com/graphcommerce-org/graphcommerce/pull/1766) [`e34169ee2`](https://github.com/graphcommerce-org/graphcommerce/commit/e34169ee2e0fdc052ff589ceca0bc67557584c1f) - Upgraded to Next.js 13
|
|
70
|
+
|
|
71
|
+
- NextLink integrates the next/link functionality with @mui/material's Link and ButtonBase (and all it's derivatives) components.
|
|
72
|
+
- NextLink automatically adds `target="_blank"` when the href is external.
|
|
73
|
+
- NextLink makes all relative href absolute. `href="my-page"` will be rendered as `href="/my-page"`.
|
|
74
|
+
|
|
75
|
+
Upgrade instructions: https://www.graphcommerce.org/docs/framework/links#upgrading-from-nextjs-12 ([@paales](https://github.com/paales))
|
|
76
|
+
|
|
77
|
+
## 5.2.0-canary.2
|
|
78
|
+
|
|
79
|
+
## 5.2.0-canary.1
|
|
80
|
+
|
|
81
|
+
## 5.2.0-canary.0
|
|
82
|
+
|
|
83
|
+
## 5.1.1
|
|
84
|
+
|
|
85
|
+
## 5.1.1-canary.1
|
|
86
|
+
|
|
87
|
+
## 5.1.1-canary.0
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- [#1762](https://github.com/graphcommerce-org/graphcommerce/pull/1762) [`0aab0bcc2`](https://github.com/graphcommerce-org/graphcommerce/commit/0aab0bcc2048793f43a76bf981ca18d9f3ccaf16) - yarn can not completele successfully when runnin in a monorepo setup if codegen hasn’t ran ([@paales](https://github.com/paales))
|
|
92
|
+
|
|
93
|
+
## 5.1.0
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`225a69dc9`](https://github.com/graphcommerce-org/graphcommerce/commit/225a69dc9eb76d85adee1c6ea8c4eff16a5fed63) - When a plugin doesn't target a file anymore, it will now cleanup the existing interceptor file. ([@paales](https://github.com/paales))
|
|
98
|
+
|
|
99
|
+
- [#1760](https://github.com/graphcommerce-org/graphcommerce/pull/1760) [`8badc8550`](https://github.com/graphcommerce-org/graphcommerce/commit/8badc8550c402ac7b80c8d3238d313550c28a055) - Updated dependencies ([@paales](https://github.com/paales))
|
|
100
|
+
|
|
101
|
+
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
|
102
|
+
|
|
103
|
+
- Updated the @mui/material package
|
|
104
|
+
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
105
|
+
- Upgraded dependencies including type-fest and graphql-mesh
|
|
106
|
+
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
107
|
+
|
|
108
|
+
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`4759c1781`](https://github.com/graphcommerce-org/graphcommerce/commit/4759c1781ebe94c18f557e2ba189000580a05692) - Interceptors are regenerated when a plugin contains a faulty configuration (happens a lot when building a plugin). ([@paales](https://github.com/paales))
|
|
109
|
+
|
|
110
|
+
- [#1745](https://github.com/graphcommerce-org/graphcommerce/pull/1745) [`2a859970d`](https://github.com/graphcommerce-org/graphcommerce/commit/2a859970de34ad768a0ba54f50d53ad17823cc15) - Make sure the interceptors aren't cleaned up constantly ([@github-actions](https://github.com/apps/github-actions))
|
|
111
|
+
|
|
112
|
+
## 5.1.0-canary.11
|
|
113
|
+
|
|
114
|
+
## 5.1.0-canary.10
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- [#1760](https://github.com/graphcommerce-org/graphcommerce/pull/1760) [`8badc8550`](https://github.com/graphcommerce-org/graphcommerce/commit/8badc8550c402ac7b80c8d3238d313550c28a055) - Updated dependencies ([@paales](https://github.com/paales))
|
|
119
|
+
|
|
120
|
+
## 5.1.0-canary.9
|
|
121
|
+
|
|
122
|
+
## 5.1.0-canary.8
|
|
123
|
+
|
|
124
|
+
## 5.1.0-canary.7
|
|
125
|
+
|
|
126
|
+
## 5.1.0-canary.6
|
|
127
|
+
|
|
128
|
+
## 5.1.0-canary.5
|
|
129
|
+
|
|
130
|
+
### Patch Changes
|
|
131
|
+
|
|
132
|
+
- [`2a859970d`](https://github.com/graphcommerce-org/graphcommerce/commit/2a859970de34ad768a0ba54f50d53ad17823cc15) - Make sure the interceptors aren't cleaned up constantly ([@paales](https://github.com/paales))
|
|
133
|
+
|
|
134
|
+
## 5.1.0-canary.4
|
|
135
|
+
|
|
136
|
+
### Patch Changes
|
|
137
|
+
|
|
138
|
+
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`225a69dc9`](https://github.com/graphcommerce-org/graphcommerce/commit/225a69dc9eb76d85adee1c6ea8c4eff16a5fed63) - When a plugin doesn't target a file anymore, it will now cleanup the existing interceptor file. ([@paales](https://github.com/paales))
|
|
139
|
+
|
|
140
|
+
- [#1755](https://github.com/graphcommerce-org/graphcommerce/pull/1755) [`4759c1781`](https://github.com/graphcommerce-org/graphcommerce/commit/4759c1781ebe94c18f557e2ba189000580a05692) - Interceptors are regenerated when a plugin contains a faulty configuration (happens a lot when building a plugin). ([@paales](https://github.com/paales))
|
|
141
|
+
|
|
142
|
+
## 5.1.0-canary.3
|
|
143
|
+
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
|
147
|
+
|
|
148
|
+
- Updated the @mui/material package
|
|
149
|
+
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
150
|
+
- Upgraded dependencies including type-fest and graphql-mesh
|
|
151
|
+
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
152
|
+
|
|
153
|
+
## 5.1.0-canary.2
|
|
154
|
+
|
|
155
|
+
## 5.1.0-canary.1
|
|
156
|
+
|
|
157
|
+
## 5.1.0-canary.0
|
|
158
|
+
|
|
159
|
+
## 5.0.0
|
|
160
|
+
|
|
161
|
+
### Major Changes
|
|
162
|
+
|
|
163
|
+
- [#1734](https://github.com/graphcommerce-org/graphcommerce/pull/1734) [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@github-actions](https://github.com/apps/github-actions))
|
|
164
|
+
|
|
165
|
+
### Minor Changes
|
|
166
|
+
|
|
167
|
+
- [#1729](https://github.com/graphcommerce-org/graphcommerce/pull/1729) [`4f85e4878`](https://github.com/graphcommerce-org/graphcommerce/commit/4f85e4878e4ad0dd528d60ad35826da0677059a9) - Add the ability to specificy plugins on the package name (e.g. `@graphcommerce/magento-cart-payment-method`) ([@paales](https://github.com/paales))
|
|
168
|
+
|
|
169
|
+
- [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`16abc9995`](https://github.com/graphcommerce-org/graphcommerce/commit/16abc9995377f5c00032674de0a1ea3ebad88c4c) - Introducing a new **Plugin system for GraphCommerce** which allows you to extend GraphCommerce in a plug-and-play manner. [Read the documentation to learn more](https://github.com/graphcommerce-org/graphcommerce/blob/main/docs/framework/plugins.md) ([@paales](https://github.com/paales))
|
|
170
|
+
|
|
171
|
+
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`6171ad02c`](https://github.com/graphcommerce-org/graphcommerce/commit/6171ad02c19782b1e1f0eb00ea25ea6b764250b5) - Added topological sorting to plugins and added ifEnv export to plugins to conditionally load plugins ([@paales](https://github.com/paales))
|
|
172
|
+
|
|
173
|
+
### Patch Changes
|
|
174
|
+
|
|
175
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`b2d73c726`](https://github.com/graphcommerce-org/graphcommerce/commit/b2d73c726fa123435fa6c54b4e0fd0db2df7c4ab) - Move to <Prev/> instead of <Component/> to call the plugin component ([@paales](https://github.com/paales))
|
|
176
|
+
|
|
177
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`d6abe2646`](https://github.com/graphcommerce-org/graphcommerce/commit/d6abe26461d92e6f6c39da1cb7e6ac896bb9475f) - Added comments to generated interceptor ([@paales](https://github.com/paales))
|
|
178
|
+
|
|
179
|
+
- [#1734](https://github.com/graphcommerce-org/graphcommerce/pull/1734) [`fdb33b4e6`](https://github.com/graphcommerce-org/graphcommerce/commit/fdb33b4e6cace84a370aa000bf86c9c3c377aaae) - Make sure the root package is always included even if it doesn't include graphcommerce in the name ([@github-actions](https://github.com/apps/github-actions))
|
|
180
|
+
|
|
181
|
+
## 5.0.0-canary.14
|
|
182
|
+
|
|
183
|
+
## 5.0.0-canary.9
|
|
184
|
+
|
|
185
|
+
### Major Changes
|
|
186
|
+
|
|
187
|
+
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
|
188
|
+
|
|
189
|
+
## 4.31.0-canary.8
|
|
190
|
+
|
|
191
|
+
## 4.31.0-canary.7
|
|
192
|
+
|
|
193
|
+
### Patch Changes
|
|
194
|
+
|
|
195
|
+
- [`fdb33b4e6`](https://github.com/graphcommerce-org/graphcommerce/commit/fdb33b4e6cace84a370aa000bf86c9c3c377aaae) - Make sure the root package is always included even if it doesn't include graphcommerce in the name ([@paales](https://github.com/paales))
|
|
196
|
+
|
|
197
|
+
## 4.31.0-canary.6
|
|
198
|
+
|
|
199
|
+
## 4.31.0-canary.5
|
|
200
|
+
|
|
201
|
+
### Minor Changes
|
|
202
|
+
|
|
203
|
+
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`6171ad02c`](https://github.com/graphcommerce-org/graphcommerce/commit/6171ad02c19782b1e1f0eb00ea25ea6b764250b5) - Added topological sorting to plugins and added ifEnv export to plugins to conditionally load plugins ([@paales](https://github.com/paales))
|
|
204
|
+
|
|
205
|
+
## 4.31.0-canary.4
|
|
206
|
+
|
|
207
|
+
## 4.31.0-canary.3
|
|
208
|
+
|
|
209
|
+
### Patch Changes
|
|
210
|
+
|
|
211
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`b2d73c726`](https://github.com/graphcommerce-org/graphcommerce/commit/b2d73c726fa123435fa6c54b4e0fd0db2df7c4ab) - Move to <Prev/> instead of <Component/> to call the plugin component ([@paales](https://github.com/paales))
|
|
212
|
+
|
|
213
|
+
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`d6abe2646`](https://github.com/graphcommerce-org/graphcommerce/commit/d6abe26461d92e6f6c39da1cb7e6ac896bb9475f) - Added comments to generated interceptor ([@paales](https://github.com/paales))
|
|
214
|
+
|
|
215
|
+
## 4.31.0-canary.2
|
|
216
|
+
|
|
217
|
+
### Minor Changes
|
|
218
|
+
|
|
219
|
+
- [#1729](https://github.com/graphcommerce-org/graphcommerce/pull/1729) [`4f85e4878`](https://github.com/graphcommerce-org/graphcommerce/commit/4f85e4878e4ad0dd528d60ad35826da0677059a9) - Add the ability to specificy plugins on the package name (e.g. `@graphcommerce/magento-cart-payment-method`) ([@paales](https://github.com/paales))
|
|
220
|
+
|
|
221
|
+
## 4.31.0-canary.1
|
|
222
|
+
|
|
223
|
+
### Minor Changes
|
|
224
|
+
|
|
225
|
+
- [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`16abc9995`](https://github.com/graphcommerce-org/graphcommerce/commit/16abc9995377f5c00032674de0a1ea3ebad88c4c) - Introducing a new **Plugin system for GraphCommerce** which allows you to extend GraphCommerce in a plug-and-play manner. [Read the documentation to learn more](https://github.com/graphcommerce-org/graphcommerce/blob/main/docs/framework/plugins.md) ([@paales](https://github.com/paales))
|
|
226
|
+
|
|
227
|
+
## 4.31.0-canary.0
|
|
228
|
+
|
|
229
|
+
## 4.30.2
|
|
230
|
+
|
|
231
|
+
## 4.30.1
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- [#1724](https://github.com/graphcommerce-org/graphcommerce/pull/1724) [`0c54f0b78`](https://github.com/graphcommerce-org/graphcommerce/commit/0c54f0b7828d78df373a96dc6d6dcd1ee108704f) Thanks [@paales](https://github.com/paales)! - Fix issue where the build version of next-config wasn't available
|
|
236
|
+
|
|
237
|
+
## 4.30.0
|
|
238
|
+
|
|
239
|
+
### Minor Changes
|
|
240
|
+
|
|
241
|
+
- [#1613](https://github.com/graphcommerce-org/graphcommerce/pull/1613) [`6c1c69ca4`](https://github.com/graphcommerce-org/graphcommerce/commit/6c1c69ca45ea1c8737cc7dcdc341fe5d825ed380) Thanks [@paales](https://github.com/paales)! - Refactor next-config to also use the new resolveDependenciesSync by exposing withGraphCommerce
|
|
242
|
+
|
|
243
|
+
### Patch Changes
|
|
244
|
+
|
|
245
|
+
- [#1702](https://github.com/graphcommerce-org/graphcommerce/pull/1702) [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
246
|
+
|
|
247
|
+
## 4.30.0-canary.1
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
252
|
+
|
|
253
|
+
## 4.30.0-canary.0
|
|
254
|
+
|
|
255
|
+
### Minor Changes
|
|
256
|
+
|
|
257
|
+
- [#1613](https://github.com/graphcommerce-org/graphcommerce/pull/1613) [`6c1c69ca4`](https://github.com/graphcommerce-org/graphcommerce/commit/6c1c69ca45ea1c8737cc7dcdc341fe5d825ed380) Thanks [@paales](https://github.com/paales)! - Refactor next-config to also use the new resolveDependenciesSync by exposing withGraphCommerce
|
|
258
|
+
|
|
259
|
+
## 3.2.0
|
|
260
|
+
|
|
261
|
+
### Minor Changes
|
|
262
|
+
|
|
263
|
+
- [#1600](https://github.com/graphcommerce-org/graphcommerce/pull/1600) [`7949c1ce1`](https://github.com/graphcommerce-org/graphcommerce/commit/7949c1ce1fd9babba5f7a440e2bb18e71f7ea515) Thanks [@paales](https://github.com/paales)! - Allow for multiple packages to be watched by webpack at the same time
|
|
264
|
+
|
|
265
|
+
## 3.1.6
|
|
266
|
+
|
|
267
|
+
### Patch Changes
|
|
268
|
+
|
|
269
|
+
- [#1552](https://github.com/graphcommerce-org/graphcommerce/pull/1552) [`18054c441`](https://github.com/graphcommerce-org/graphcommerce/commit/18054c441962ba750bed3acc39ab46c8d3a341ce) Thanks [@paales](https://github.com/paales)! - Updated to Next.js v12.2.2 and other packages and made compatible
|
|
270
|
+
|
|
271
|
+
## 3.1.5
|
|
272
|
+
|
|
273
|
+
### Patch Changes
|
|
274
|
+
|
|
275
|
+
- [#1490](https://github.com/graphcommerce-org/graphcommerce/pull/1490) [`d311ef48b`](https://github.com/graphcommerce-org/graphcommerce/commit/d311ef48bb3e97806d992af5516d6b7f183ec9cb) Thanks [@paales](https://github.com/paales)! - upgraded packages
|
|
276
|
+
|
|
277
|
+
## 3.1.4
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- [#1426](https://github.com/graphcommerce-org/graphcommerce/pull/1426) [`100f4c38c`](https://github.com/graphcommerce-org/graphcommerce/commit/100f4c38c8fcda4bc6e0425e38028b550b60adc2) Thanks [@paales](https://github.com/paales)! - Upgrade packages
|
|
282
|
+
|
|
283
|
+
## 3.1.3
|
|
284
|
+
|
|
285
|
+
### Patch Changes
|
|
286
|
+
|
|
287
|
+
- [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Now using [@graphql-yoga](https://github.com/dotansimha/graphql-yoga) for GraphQL which has full support for [envelop](https://www.envelop.dev/) plugins.
|
|
288
|
+
|
|
289
|
+
* [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Added a new @graphcommerce/cli package to generate the mesh so it can be generated _inside_ the @graphcommerce/graphql-mesh package to allow for better future extensibility.
|
|
290
|
+
|
|
291
|
+
- [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4) Thanks [@paales](https://github.com/paales)! - Updated dependencies
|
|
292
|
+
|
|
293
|
+
## 3.1.2
|
|
294
|
+
|
|
295
|
+
### Patch Changes
|
|
296
|
+
|
|
297
|
+
- [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
|
|
298
|
+
|
|
299
|
+
## 3.1.1
|
|
300
|
+
|
|
301
|
+
### Patch Changes
|
|
302
|
+
|
|
303
|
+
- [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
|
|
304
|
+
|
|
305
|
+
## 3.1.0
|
|
306
|
+
|
|
307
|
+
### Minor Changes
|
|
308
|
+
|
|
309
|
+
- [#1341](https://github.com/graphcommerce-org/graphcommerce/pull/1341) [`47a03c6c7`](https://github.com/graphcommerce-org/graphcommerce/commit/47a03c6c764cb1f544d3de3af52456608694a9d7) Thanks [@paales](https://github.com/paales)! - Files in node_modules/@graphcommerce will now also be watched and won’t be cached
|
|
310
|
+
|
|
311
|
+
### Patch Changes
|
|
312
|
+
|
|
313
|
+
- [#1341](https://github.com/graphcommerce-org/graphcommerce/pull/1341) [`2e29c5852`](https://github.com/graphcommerce-org/graphcommerce/commit/2e29c585247d356e3027be92beb7815f2070c855) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
314
|
+
|
|
315
|
+
## 3.0.4
|
|
316
|
+
|
|
317
|
+
### Patch Changes
|
|
318
|
+
|
|
319
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
|
320
|
+
|
|
321
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
322
|
+
|
|
323
|
+
## 3.0.3
|
|
324
|
+
|
|
325
|
+
### Patch Changes
|
|
326
|
+
|
|
327
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
328
|
+
|
|
329
|
+
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
330
|
+
|
|
331
|
+
## 3.0.2
|
|
332
|
+
|
|
333
|
+
### Patch Changes
|
|
334
|
+
|
|
335
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
|
336
|
+
|
|
337
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
|
338
|
+
|
|
339
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
|
340
|
+
|
|
341
|
+
## 3.0.1
|
|
342
|
+
|
|
343
|
+
### Patch Changes
|
|
344
|
+
|
|
345
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
|
|
346
|
+
|
|
347
|
+
## 3.0.0
|
|
348
|
+
|
|
349
|
+
### Major Changes
|
|
350
|
+
|
|
351
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
352
|
+
|
|
353
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
354
|
+
|
|
355
|
+
# [2.109.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.108.0...@graphcommerce/next-config@2.109.0) (2021-11-12)
|
|
356
|
+
|
|
357
|
+
### Features
|
|
358
|
+
|
|
359
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
360
|
+
|
|
361
|
+
# [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.107.3...@graphcommerce/next-config@2.108.0) (2021-11-09)
|
|
362
|
+
|
|
363
|
+
### Features
|
|
364
|
+
|
|
365
|
+
- **next-config:** support for .po files to be imported ([79b64ce](https://github.com/ho-nl/m2-pwa/commit/79b64ce9b444fcf620279d9a8e5d253b8e9cfa84))
|
|
366
|
+
|
|
367
|
+
# [2.107.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.106.1...@graphcommerce/next-config@2.107.0) (2021-10-27)
|
|
368
|
+
|
|
369
|
+
### Features
|
|
370
|
+
|
|
371
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
372
|
+
|
|
373
|
+
# [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.105.1...@graphcommerce/next-config@2.106.0) (2021-10-20)
|
|
374
|
+
|
|
375
|
+
### Features
|
|
376
|
+
|
|
377
|
+
- **next-config:** support topLevelAwait ([3cb4f90](https://github.com/ho-nl/m2-pwa/commit/3cb4f90ac3af797f5fcba888dfd28aa2b76480b8))
|
|
378
|
+
|
|
379
|
+
## [2.105.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.105.0...@graphcommerce/next-config@2.105.1) (2021-10-19)
|
|
380
|
+
|
|
381
|
+
### Bug Fixes
|
|
382
|
+
|
|
383
|
+
- **next-config:** make sure webpack is available ([46edb3e](https://github.com/ho-nl/m2-pwa/commit/46edb3e6fd1b716d7d9dbe59cb1530375d24c228))
|
|
384
|
+
|
|
385
|
+
# [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.7...@graphcommerce/next-config@2.105.0) (2021-10-19)
|
|
386
|
+
|
|
387
|
+
### Bug Fixes
|
|
388
|
+
|
|
389
|
+
- **next-config:** move the @apollo/client **DEV** env to next-config ([fb1df3f](https://github.com/ho-nl/m2-pwa/commit/fb1df3fe4edbf769afb4149c7beced70bb948be5))
|
|
390
|
+
|
|
391
|
+
### Features
|
|
392
|
+
|
|
393
|
+
- **mesh:** move to a default .meshrc.yml format instead of the json file ([d9a30a7](https://github.com/ho-nl/m2-pwa/commit/d9a30a78baed2b85b77bbd80e94a6f047e2255b6))
|
|
394
|
+
|
|
395
|
+
## [2.104.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.3...@graphcommerce/next-config@2.104.4) (2021-10-07)
|
|
396
|
+
|
|
397
|
+
### Bug Fixes
|
|
398
|
+
|
|
399
|
+
- replace **DEV** with proper variable for optimizing the bundle size ([9b03209](https://github.com/ho-nl/m2-pwa/commit/9b032095f618846d132c00b8dc14fbb1b09c6ed8))
|
|
400
|
+
|
|
401
|
+
## [2.104.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.2...@graphcommerce/next-config@2.104.3) (2021-09-30)
|
|
402
|
+
|
|
403
|
+
### Bug Fixes
|
|
404
|
+
|
|
405
|
+
- .next folder doesn't always exist on vercel ([5f8f1a7](https://github.com/ho-nl/m2-pwa/commit/5f8f1a7c2c6690be113adfe2fef662c63781e91f))
|
|
406
|
+
|
|
407
|
+
## [2.104.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.1...@graphcommerce/next-config@2.104.2) (2021-09-29)
|
|
408
|
+
|
|
409
|
+
### Bug Fixes
|
|
410
|
+
|
|
411
|
+
- cache dependencylist ([257da86](https://github.com/ho-nl/m2-pwa/commit/257da860c22a7134896e99e2fcf9f67c0ce99363))
|
|
412
|
+
|
|
413
|
+
## [2.104.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.104.0...@graphcommerce/next-config@2.104.1) (2021-09-28)
|
|
414
|
+
|
|
415
|
+
### Bug Fixes
|
|
416
|
+
|
|
417
|
+
- do not build on install ([254e2a6](https://github.com/ho-nl/m2-pwa/commit/254e2a6f4b2a7e81f46466a0abe06ae2f3a79575))
|
|
418
|
+
|
|
419
|
+
# [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.103.0...@graphcommerce/next-config@2.104.0) (2021-09-28)
|
|
420
|
+
|
|
421
|
+
### Features
|
|
422
|
+
|
|
423
|
+
- created withYarn1Scopes functionality so we don't rely on actual workspaces ([7e491ca](https://github.com/ho-nl/m2-pwa/commit/7e491ca2276028a8587f6cd88b98ee451755c3d0))
|
|
424
|
+
|
|
425
|
+
# [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.3...@graphcommerce/next-config@2.103.0) (2021-09-28)
|
|
426
|
+
|
|
427
|
+
### Bug Fixes
|
|
428
|
+
|
|
429
|
+
- withYarn1Workspaces is not a function ([a095bc9](https://github.com/ho-nl/m2-pwa/commit/a095bc9f0011fbe9180d0e1718f1b41e89a5f6d9))
|
|
430
|
+
|
|
431
|
+
### Features
|
|
432
|
+
|
|
433
|
+
- add postinstall commands to run properly on deploy ([d512ee3](https://github.com/ho-nl/m2-pwa/commit/d512ee3ba5c3a9573651ec5333595fe2f1aa141c))
|
|
434
|
+
|
|
435
|
+
## [2.102.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.2...@graphcommerce/next-config@2.102.3) (2021-09-27)
|
|
436
|
+
|
|
437
|
+
### Bug Fixes
|
|
438
|
+
|
|
439
|
+
- build packages before releasing ([c4761cf](https://github.com/ho-nl/m2-pwa/commit/c4761cf6d1810c140fd56f6eac8fca922f8c0edc))
|
|
440
|
+
|
|
441
|
+
## [2.102.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.0...@graphcommerce/next-config@2.102.2) (2021-09-27)
|
|
442
|
+
|
|
443
|
+
### Bug Fixes
|
|
444
|
+
|
|
445
|
+
- add warnings to next.config.js when .env variables are missing ([d9dffec](https://github.com/ho-nl/m2-pwa/commit/d9dffec8ebc9cb1c70ca5591cad5e42c9bbe30e6))
|
|
446
|
+
|
|
447
|
+
## [2.102.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.102.0...@graphcommerce/next-config@2.102.1) (2021-09-27)
|
|
448
|
+
|
|
449
|
+
**Note:** Version bump only for package @graphcommerce/next-config
|
|
450
|
+
|
|
451
|
+
# 2.102.0 (2021-09-27)
|
|
452
|
+
|
|
453
|
+
### Bug Fixes
|
|
454
|
+
|
|
455
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
456
|
+
- **next-config:** another shot at fixing next-config ([a4afe11](https://github.com/ho-nl/m2-pwa/commit/a4afe112aa1308c10bb407d5e3eebf1f239d789c))
|
|
457
|
+
- **next-config:** automatically resolve the workspace dependencies ([4d739ec](https://github.com/ho-nl/m2-pwa/commit/4d739ec969591f96392f99e476016c6ad1d092cb))
|
|
458
|
+
- playwright can't find the place order button ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
|
|
459
|
+
|
|
460
|
+
### Features
|
|
461
|
+
|
|
462
|
+
- **framer-sheet:** created separate package that can be implemented ([69cc8ce](https://github.com/ho-nl/m2-pwa/commit/69cc8ce3237125335524728a70f4dae050032108))
|
|
463
|
+
- **next-config:** introduced package to streamline the setup of new examples ([b8a3958](https://github.com/ho-nl/m2-pwa/commit/b8a39584e5b529fcaa22db67d3f986b91ae683ad))
|
|
464
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
465
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
466
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
467
|
+
|
|
468
|
+
## [2.101.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.101.0...@graphcommerce/next-config@2.101.1) (2021-09-01)
|
|
469
|
+
|
|
470
|
+
### Bug Fixes
|
|
471
|
+
|
|
472
|
+
- playwright can't find the place order button ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
|
|
473
|
+
|
|
474
|
+
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.100.10...@graphcommerce/next-config@2.101.0) (2021-08-12)
|
|
475
|
+
|
|
476
|
+
### Features
|
|
477
|
+
|
|
478
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
479
|
+
|
|
480
|
+
## [2.100.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-config@2.100.9...@graphcommerce/next-config@2.100.10) (2021-08-09)
|
|
481
|
+
|
|
482
|
+
### Bug Fixes
|
|
483
|
+
|
|
484
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
package/Config.graphqls
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"""
|
|
2
|
+
# GraphCommerce configuration system
|
|
3
|
+
|
|
4
|
+
Global GraphCommerce configuration can be configured in your `graphcommerce.config.js` file
|
|
5
|
+
in the root of your project and are automatically validated on startup.
|
|
6
|
+
|
|
7
|
+
## Configuring with the configuration file.
|
|
8
|
+
|
|
9
|
+
The configuration file is a javascript file that exports a `GraphCommerceConfig` object. See graphcommerce.config.js.example for an example.
|
|
10
|
+
|
|
11
|
+
## Using configuration
|
|
12
|
+
|
|
13
|
+
Configuration can be accessed in your project with the `import.meta.graphCommerce` object.
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { i18nAll, i18nConfig, i18nConfigDefault, useI18nConfig } from '@graphcommerce/next-ui'
|
|
17
|
+
|
|
18
|
+
// Accessing a global value
|
|
19
|
+
const globalConf = import.meta.graphCommerce.cartDisplayPricesInclTax
|
|
20
|
+
|
|
21
|
+
function MyComponent() {
|
|
22
|
+
// Configuration configured per i18n locale.
|
|
23
|
+
const scopedConfig = useI18nConfig().cartDisplayPricesInclTax
|
|
24
|
+
|
|
25
|
+
// Creating a fallback system
|
|
26
|
+
const scopedConfigWithFallback = scopedConfig ?? globalConf
|
|
27
|
+
|
|
28
|
+
// Or as single line
|
|
29
|
+
const scopedConfigWithFallback2 =
|
|
30
|
+
useI18nConfig().cartDisplayPricesInclTax ?? import.meta.graphCommerce.cartDisplayPricesInclTax
|
|
31
|
+
|
|
32
|
+
return <div>{googleRecaptchaKey}</div>
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Environment variables to override configuration
|
|
37
|
+
|
|
38
|
+
Configuration values can be overwriten by environment variables, with the following rules:
|
|
39
|
+
- Convert from camelCase to `SCREAMING_SNAKE_CASE`
|
|
40
|
+
- Prefix with `GC_`
|
|
41
|
+
- Arrays can be indexed with _0, _1, _2, etc.
|
|
42
|
+
- Objects can be accessed with _<key>.
|
|
43
|
+
|
|
44
|
+
Examples:
|
|
45
|
+
- `limitSsg` -> `GC_LIMIT_SSG="1"`
|
|
46
|
+
- `i18n[0].locale` -> `GC_I18N_0_LOCALE="en"`
|
|
47
|
+
- `debug.pluginStatus` -> `GC_DEBUG_PLUGIN_STATUS="1"`
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Exporting current configuration to environment variables
|
|
51
|
+
|
|
52
|
+
You can export configuration by running `yarn graphcommerce export-config`
|
|
53
|
+
|
|
54
|
+
## Extending the configuration in your project
|
|
55
|
+
|
|
56
|
+
Create a graphql/Config.graphqls file in your project and extend the GraphCommerceConfig, GraphCommerceI18nConfig inputs to add configuration.
|
|
57
|
+
|
|
58
|
+
```graphql
|
|
59
|
+
extend input GraphCommerceConfig {
|
|
60
|
+
myOptionalBoolean: Boolean
|
|
61
|
+
myRequiredBoolean: Boolean!
|
|
62
|
+
myOptionalString: String
|
|
63
|
+
myRequiredString: String!
|
|
64
|
+
myOptionalInt: Int
|
|
65
|
+
myRequiredInt: Int!
|
|
66
|
+
myOptionalFloat: Float
|
|
67
|
+
myRequiredFloat: Float!
|
|
68
|
+
}
|
|
69
|
+
extend input GraphCommerceI18nConfig {
|
|
70
|
+
myField: Boolean
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## All configuration values
|
|
75
|
+
|
|
76
|
+
Below is a list of all possible configurations that can be set by GraphCommerce.
|
|
77
|
+
"""
|
|
78
|
+
input GraphCommerceConfig {
|
|
79
|
+
"""
|
|
80
|
+
All i18n configuration for the project
|
|
81
|
+
"""
|
|
82
|
+
i18n: [GraphCommerceI18nConfig!]!
|
|
83
|
+
|
|
84
|
+
"""
|
|
85
|
+
Limit the static generation of SSG when building
|
|
86
|
+
"""
|
|
87
|
+
limitSsg: Boolean
|
|
88
|
+
|
|
89
|
+
"""
|
|
90
|
+
Allow the site to be indexed by search engines.
|
|
91
|
+
If false, the robots.txt file will be set to disallow all.
|
|
92
|
+
"""
|
|
93
|
+
robotsAllow: Boolean
|
|
94
|
+
|
|
95
|
+
"""
|
|
96
|
+
The canonical base URL is used for SEO purposes.
|
|
97
|
+
|
|
98
|
+
Examples:
|
|
99
|
+
- https://example.com
|
|
100
|
+
- https://example.com/en
|
|
101
|
+
- https://example.com/en-US
|
|
102
|
+
"""
|
|
103
|
+
canonicalBaseUrl: String!
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
To enable next.js' preview mode, configure the secret you'd like to use.
|
|
107
|
+
"""
|
|
108
|
+
previewSecret: String
|
|
109
|
+
|
|
110
|
+
"""
|
|
111
|
+
Debug configuration for GraphCommerce
|
|
112
|
+
"""
|
|
113
|
+
debug: GraphCommerceDebugConfig
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
"""
|
|
117
|
+
All i18n configuration for the project
|
|
118
|
+
"""
|
|
119
|
+
input GraphCommerceI18nConfig {
|
|
120
|
+
"""
|
|
121
|
+
There can only be one entry with defaultLocale set to true.
|
|
122
|
+
- If there are more, the first one is used.
|
|
123
|
+
- If there is none, the first entry is used.
|
|
124
|
+
"""
|
|
125
|
+
defaultLocale: Boolean
|
|
126
|
+
|
|
127
|
+
"""
|
|
128
|
+
Domain configuration, must be a domain https://tools.ietf.org/html/rfc3986
|
|
129
|
+
"""
|
|
130
|
+
domain: String
|
|
131
|
+
|
|
132
|
+
"""
|
|
133
|
+
Must be a locale string https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers
|
|
134
|
+
"""
|
|
135
|
+
locale: String!
|
|
136
|
+
|
|
137
|
+
# """
|
|
138
|
+
# Allow the site to be indexed by search engines.
|
|
139
|
+
# If false, the robots.txt file will be set to disallow all.
|
|
140
|
+
# """
|
|
141
|
+
# robotsAllow: Boolean
|
|
142
|
+
|
|
143
|
+
"""
|
|
144
|
+
The canonical base URL is used for SEO purposes.
|
|
145
|
+
|
|
146
|
+
Examples:
|
|
147
|
+
- https://example.com
|
|
148
|
+
- https://example.com/en
|
|
149
|
+
- https://example.com/en-US
|
|
150
|
+
"""
|
|
151
|
+
canonicalBaseUrl: String
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
"""
|
|
155
|
+
Debug configuration for GraphCommerce
|
|
156
|
+
"""
|
|
157
|
+
input GraphCommerceDebugConfig {
|
|
158
|
+
"""
|
|
159
|
+
When updating packages it can happen that the same package is included with different versions in the same project.
|
|
160
|
+
|
|
161
|
+
Issues that this can cause are:
|
|
162
|
+
- The same package is included multiple times in the bundle, increasing the bundle size.
|
|
163
|
+
- The Typescript types of the package are not compatible with each other, causing Typescript errors.
|
|
164
|
+
"""
|
|
165
|
+
webpackDuplicatesPlugin: Boolean
|
|
166
|
+
|
|
167
|
+
"""
|
|
168
|
+
Cyclic dependencies can cause memory issues and other strange bugs.
|
|
169
|
+
This plugin will warn you when it detects a cyclic dependency.
|
|
170
|
+
|
|
171
|
+
When running into memory issues, it can be useful to enable this plugin.
|
|
172
|
+
"""
|
|
173
|
+
webpackCircularDependencyPlugin: Boolean
|
|
174
|
+
|
|
175
|
+
"""
|
|
176
|
+
Reports which plugins are enabled or disabled.
|
|
177
|
+
"""
|
|
178
|
+
pluginStatus: Boolean
|
|
179
|
+
}
|