Skip to content

Commit

Permalink
Stop checking for products and discounts routes (#1141)
Browse files Browse the repository at this point in the history
* Stop checking for products and discounts routes

* Changesets
  • Loading branch information
frandiox committed Jul 25, 2023
1 parent 97670ee commit 2a036d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-trainers-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-hydrogen': patch
---

Stop checking `/products` and `/discount` routes in `h2 check routes` command.
4 changes: 2 additions & 2 deletions packages/cli/src/lib/missing-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {RemixConfig} from './config.js';
const REQUIRED_ROUTES = [
'',
'cart',
'products',
// 'products',
'products/:productHandle',

'collections',
Expand All @@ -26,7 +26,7 @@ const REQUIRED_ROUTES = [
// 'variants/:variantId',
'search',
// 'gift_cards/:storeId/:cardId',
'discount/:discountCode',
// 'discount/:discountCode', => Handled in storefrontRedirect

'account',
'account/login',
Expand Down

0 comments on commit 2a036d7

Please sign in to comment.