gatsby-starter-shopify icon indicating copy to clipboard operation
gatsby-starter-shopify copied to clipboard

small fixes

Open mikejw opened this issue 2 years ago • 2 comments

This gets the search page running once built instead of throwing undefined errors.

There are still issues I'm noticing.

  1. The search page isn't populated with all products on first load.
  2. Product links from the search page results have an extra slash in the URI. e.g. "http://www.dev.org/products//cuboid".
  3. 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.
  4. 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.

mikejw avatar Jan 03 '22 16:01 mikejw

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.

mikejw avatar Jan 03 '22 16:01 mikejw

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!

mikejw avatar Jan 03 '22 18:01 mikejw