Merge pull request #11189 from spree/fix/promotion-code-unique
[spree.git] / netlify.toml
blobbdab842db2525f27d5a6fd9e6cddfb6d6e1e85a9
1 [Settings]
2 # Added automatically by the Netlify CLI. It has no effect during normal
3 # Git-backed deploys.
4 ID = "49ded9cc-27d3-4e02-b186-4fd7fd334ed8"
6 # Settings in the [build] context are global and are applied to all contexts
7 # unless otherwise overridden by more specific contexts.
8 [build]
9   # Directory to change to before starting a build.
10   # This is where we will look for package.json/.nvmrc/etc.
11   base = "guides/"
13   # Directory (relative to root of your repo) that contains the deploy-ready
14   # HTML files and assets generated by the build. If a base directory has
15   # been specified, include it in the publish directory path.
16   publish = "guides/public"
18   # Default build command.
19   command = "yarn run build"
21 # release notes redirects
22 [[redirects]]
23   from = "/release_notes/spree_*"
24   to = "/release_notes/:splat"
26 # User - Users section redirects
27 [[redirects]]
28   from = "/user/creating_users.html"
29   to = "/user/users/creating_users.html"
31 [[redirects]]
32   from = "/user/searching_users.html"
33   to = "/user/users/searching_users.html"
35 [[redirects]]
36   from = "/user/deleting_users.html"
37   to = "/user/users/deleting_users.html"
39 [[redirects]]
40   from = "/user/editing_users.html"
41   to = "/user/users/editing_users.html"
43 # upgrade redirects
44 [[redirects]]
45   from = "/developer/three-dot-*"
46   to = "/developer/upgrades/three-dot-:splat"
48 [[redirects]]
49   from = "/developer/two-dot-*"
50   to = "/developer/upgrades/two-dot-:splat"
52 [[redirects]]
53   from = "/developer/one-dot-*"
54   to = "/developer/upgrades/one-dot-:splat"
56 [[redirects]]
57   from = "/developer/point-*"
58   to = "/developer/upgrades/point-:splat"
60 # tutorials redirects
61 [[redirects]]
62   from = "/developer/getting_started_tutorial.html"
63   to = "/developer/getting_started/installation.html"
65 [[redirects]]
66   from = "/developer/tutorials/getting_started_tutorial.html"
67   to = "/developer/getting_started/installation.html"
69 [[redirects]]
70   from = "/developer/api_customization_tutorial.html"
71   to = "/developer/customization/api_v1.html"
73 [[redirects]]
74   from = "/developer/deface_overrides_tutorial.html"
75   to = "/developer/advanced/deface_overrides_tutorial.html"
77 [[redirects]]
78   from = "/developer/tutorials/deface_overrides_tutorial.html"
79   to = "/developer/advanced/deface_overrides_tutorial.html"
81 [[redirects]]
82   from = "/developer/extensions_tutorial.html"
83   to = "/developer/contributing/extensions_tutorial.html"
85 [[redirects]]
86   from = "/developer/tutorials/extensions_tutorial.html"
87   to = "/developer/contributing/extensions_tutorial.html"
89 [[redirects]]
90   from = "/developer/testing.html"
91   to = "/developer/advanced/testing.html"
93 [[redirects]]
94   from = "/developer/tutorials/testing.html"
95   to = "/developer/advanced/testing.html"
97 [[redirects]]
98   from = "/developer/migration.html"
99   to = "/developer/advanced/migration.html"
101 [[redirects]]
102   from = "/developer/seo.html"
103   to = "/developer/advanced/seo.html"
105 [[redirects]]
106   from = "/developer/tutorials/seo.html"
107   to = "/developer/advanced/seo.html"
109 [[redirects]]
110   from = "/developer/security.html"
111   to = "/developer/security"
113 [[redirects]]
114   from = "/developer/tutorials/security.html"
115   to = "/developer/security"
117 # core
118 [[redirects]]
119   from = "/developer/addresses.html"
120   to = "/developer/internals/addresses.html"
122 [[redirects]]
123   from = "/developer/adjustments.html"
124   to = "/developer/internals/adjustments.html"
126 [[redirects]]
127   from = "/developer/calculators.html"
128   to = "/developer/internals/calculators.html"
130 [[redirects]]
131   from = "/developer/inventory.html"
132   to = "/developer/internals/inventory.html"
134 [[redirects]]
135   from = "/developer/orders.html"
136   to = "/developer/internals/orders.html"
138 [[redirects]]
139   from = "/developer/payments.html"
140   to = "/developer/internals/payments.html"
142 [[redirects]]
143   from = "/developer/preferences.html"
144   to = "/developer/internals/preferences.html"
146 [[redirects]]
147   from = "/developer/products.html"
148   to = "/developer/internals/products.html"
150 [[redirects]]
151   from = "/developer/promotions.html"
152   to = "/developer/internals/promotions.html"
154 [[redirects]]
155   from = "/developer/shipments.html"
156   to = "/developer/internals/shipments.html"
158 [[redirects]]
159   from = "/developer/taxation.html"
160   to = "/developer/internals/taxation.html"
162 # customization
164 [[redirects]]
165   from = "/developer/authentication.html"
166   to = "/developer/customization/authentication.html"
168 [[redirects]]
169   from = "/developer/i18n.html"
170   to = "/developer/customization/i18n.html"
172 [[redirects]]
173   from = "/developer/view.html"
174   to = "/developer/customization/view.html"
176 [[redirects]]
177   from = "/developer/asset.html"
178   to = "/developer/customization/asset.html"
180 [[redirects]]
181   from = "/developer/logic.html"
182   to = "/developer/customization/logic.html"
184 [[redirects]]
185   from = "/developer/images.html"
186   to = "/developer/customization/images.html"
188 [[redirects]]
189   from = "/developer/checkout.html"
190   to = "/developer/customization/checkout.html"
192 # user
194 [[redirects]]
195   from = "/user/configuring_taxes.html"
196   to = "/user/configuration/configuring_taxes.html"
198 [[redirects]]
199   from = "/user/configuring_inventory.html"
200   to = "/user/configuration/configuring_inventory.html"
202 [[redirects]]
203   from = "/user/configuring_geography.html"
204   to = "/user/configuration/configuring_geography.html"
206 [[redirects]]
207   from = "/user/configuring_analytics.html"
208   to = "/user/configuration/configuring_analytics.html"
210 [[redirects]]
211   from = "/user/configuring_mail_methods.html"
212   to = "/user/configuration/configuring_mail_methods.html"
214 [[redirects]]
215   from = "/user/configuring_reimbursement_types.html"
216   to = "/user/configuration/configuring_reimbursement_types.html"
218 [[redirects]]
219   from = "/user/configuring_return_authorization_reasons.html"
220   to = "/user/configuration/configuring_return_authorization_reasons.html"
222 [[redirects]]
223   from = "/user/configuring_roles.html"
224   to = "/user/configuration/configuring_roles.html"
226 [[redirects]]
227   from = "/user/configuring_store_credit_categories.html"
228   to = "/user/configuration/configuring_store_credit_categories.html"
230 [[redirects]]
231   from = "/user/processing_orders.html"
232   to = "/user/orders/processing_orders.html"
234 [[redirects]]
235   from = "/user/editing_orders.html"
236   to = "/user/orders/editing_orders.html"
238 [[redirects]]
239   from = "/user/entering_orders.html"
240   to = "/user/orders/entering_orders.html"
242 [[redirects]]
243   from = "/user/order_states.html"
244   to = "/user/orders/order_states.html"
246 [[redirects]]
247   from = "/user/returning_orders.html"
248   to = "/user/orders/returning_orders.html"
250 [[redirects]]
251   from = "/user/searching_orders.html"
252   to = "/user/orders/searching_orders.html"
254 [[redirects]]
255   from = "/user/payment_methods.html"
256   to = "/user/payments/payment_methods.html"
258 [[redirects]]
259   from = "/user/payment_states.html"
260   to = "/user/payments/payment_states.html"
262 [[redirects]]
263   from = "/user/cloning_products.html"
264   to = "/user/products/cloning_products.html"
266 [[redirects]]
267   from = "/user/creating_products.html"
268   to = "/user/products/creating_products.html"
270 [[redirects]]
271   from = "/user/deleting_products.html"
272   to = "/user/products/deleting_products.html"
274 [[redirects]]
275   from = "/user/editing_products.html"
276   to = "/user/products/editing_products.html"
278 [[redirects]]
279   from = "/user/product_options.html"
280   to = "/user/products/product_options.html"
282 [[redirects]]
283   from = "/user/product_properties.html"
284   to = "/user/products/product_properties.html"
286 [[redirects]]
287   from = "/user/product_prototypes.html"
288   to = "/user/products/product_prototypes.html"
290 [[redirects]]
291   from = "/user/searching_products.html"
292   to = "/user/products/searching_products.html"
294 [[redirects]]
295   from = "/user/configuring_taxonomies.html"
296   to = "/user/products/taxonomies_and_taxons.html"
298 [[redirects]]
299   from = "/user/configuring_shipping.html"
300   to = "/user/shipments/"
302 [[redirects]]
303   from = "/user/calculators.html"
304   to = "/user/shipments/calculators.html"
306 [[redirects]]
307   from = "/user/shipping_categories.html"
308   to = "/user/shipments/shipping_categories.html"
310 [[redirects]]
311   from = "/user/shipping_methods.html"
312   to = "/user/shipments/shipping_methods.html"
314 [[redirects]]
315   from = "/user/zones.html"
316   to = "/user/shipments/zones.html"
318 [[redirects]]
319   from = "/api/v2"
320   to = "https://api.spreecommerce.org/docs/api-v2/api/docs/v2/storefront/index.yaml"
322 [[redirects]]
323   from = "/api/v2/storefront"
324   to = "https://api.spreecommerce.org/docs/api-v2/api/docs/v2/storefront/index.yaml"
326 [[redirects]]
327   from = "/api/v2/authentication"
328   to = "https://api.spreecommerce.org/docs/api-v2/api/docs/oauth/index.yml"
330 [[redirects]]
331   from = "/api/overview"
332   to = "/api/"
334 # core -> internals redirects
335 [[redirects]]
336   from = "/developer/core/"
337   to = "/developer/internals/"
338 [[redirects]]
339   from = "/developer/core/*"
340   to = "/developer/internals/:splat"
342 [[redirects]]
343   from = "/developer/tutorials/existing_app_tutorial.html"
344   to = "/developer/advanced/existing_app_tutorial.html"