gatsby-starter-shopify
gatsby-starter-shopify copied to clipboard
small fixes
This gets the search page running once built instead of throwing undefined errors.
There are still issues I'm noticing.
- The search page isn't populated with all products on first load.
- Product links from the search page results have an extra slash in the URI. e.g. "http://www.dev.org/products//cuboid".
- Clicking "View empty products" link from an empty cart page loads the search page but doesn't populate it with products. Perhaps the query string needs to be populated with a wildcard (*) somewhere? Perhaps this is related to point 1.
- Once deployed there isn't a compiled search page to land on when refreshing the browser at the "/search" URI. I'm using mod_rewrite to redirect to "index.html" however the default routing means the user is redirected to the home page anyway when trying to load "/search..." fresh in the browser.
Closed as per comment this comment https://github.com/gatsbyjs/gatsby-starter-shopify/issues/57#issuecomment-1004145877, which states the code should be run with a node process (npm run serve) on a VPS.
I'm reopening this ticket as I'm noticing these errors still appear when using gatsby serve
behind a proxy. i.e. nginx. There are errors that prevent the search page from loading which is addressed in the PR. Please ignore points 2 (see separate pull request: https://github.com/gatsbyjs/gatsby-starter-shopify/pull/61) and point 4!