Skip to content

Commit

Permalink
Upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Jan 4, 2024
1 parent bc3a833 commit e7380d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/upgrading/graphcommerce-5-to-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The route for the product has changed from `/product/[url]`,
singlular product page for all product types.

~~You can keep using the old behavior by setting `legacyProductRoute` to true.~~
The legacy routing has been removed in GraphCommerce 7.
The legacy routing has been removed in GraphCommerce 8.

You can also change the product route from `/p/[url]` to something else by
configuring [productRoute](../framework/config.md#productroute-string)
Expand Down
18 changes: 18 additions & 0 deletions docs/upgrading/graphcommerce-7-to-8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Upgrading from GraphCommerce 6 to 7

Depending on the amounts of customisations you've made, there are some manual
steps. Please follow the regular [upgrade steps first](./readme.md).

1. [`legacyProductRoute` is removed](#legacyproductroute-is-removed)
2. [Upgrading your Hygraph schema](#upgrading-your-hygraph-schema)

## `legacyProductRoute` is removed

🟠 Only required if you've used the legacyProductRoute

Remove all `/pages/product/*` routes.

## Upgrading your Hygraph schema

Upgrade your Hygraph schema with the [Hygraph migration cli](../hygraph/cli.md).
Select `graphcommerce7to8` as version.

0 comments on commit e7380d8

Please sign in to comment.