reactioncommerce / example-storefront

Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
https://www.mailchimp.com/developer/open-commerce
Apache License 2.0
608 stars 288 forks source link

Checkout is broken in production mode #774

Closed CMorgan94 closed 3 years ago

CMorgan94 commented 3 years ago

checkout_bug When attempting to checkout in production, the checkout page displays a message saying that the cart is empty. This message appears in German even though the language is set to English on the store. The checkout appears to break as the graphQL query is not passing a shopId eventhough a user is signed in and is apart of the primary shop. graphql_error

Steps to reproduce:

  1. Run the product in production mode
  2. Login to the storefront
  3. Select a product from the storefront and click add to cart
  4. Open the cart dropdown menu and select checkout
  5. The empty cart message will appear along with the null shopId error in the console.