Comments (5)
Upon further inspection, the value for consent.checkoutDomain
is set through the env variable PUBLIC_CHECKOUT_DOMAIN
(line 75 of root.jsx and line 22 of entry.server.jsx)
But this PUBLIC_CHECKOUT_DOMAIN
env is actually not being pulled when I run npx shopify hydrogen env pull
. When I add the env manually, it works as expected.
Quick question - What should the value of PUBLIC_CHECKOUT_DOMAIN be? I don't see it anywhere in the docs.
from hydrogen.
Update: Same issue after deploying to Oxygen.
I tried adding PUBLIC_CHECKOUT_DOMAIN
env in Hydrogen App's Storefront Settings manually and deploying again, but still getting 500 Invariant Failed
error
from hydrogen.
Update 2: Found the issue. In package.json
, the shopify cli version is set exactly to 3.60.0
. Seems like this version of cli is not setting PUBLIC_CHECKOUT_DOMAIN
env.
I changed it to ^3.60.0
so that it pulls the most recent minor version and it started working again! Works fine on Oxygen as well. At the time of writing this, it pulled 3.61.2
from hydrogen.
We have a release recently to fix this problem in 2024.4.4
from hydrogen.
There are more fixed introduced in 2024.4.6
from hydrogen.
Related Issues (20)
- Production deployments in branches other than `main` not possible anymore HOT 8
- Invalid or vanity URL's with a single path segment do not redirect to 404 or to a redirect set in Shopify HOT 2
- Can't remove cart attribute using cartAttributesUpdate action from useCart() hook HOT 1
- Hydration errors when using Script component with getSeoMeta HOT 2
- Modelviewer throws SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data HOT 2
- Make sure Hydrogen 400 errors on bad requests
- Canonical link from `getSeoMeta` is not updated on path change HOT 1
- Customer Account API - prompt none parameter breaks auth flow HOT 2
- Preferences missing from CartBuyerIdentityInput type HOT 3
- Unmounting CartForm cancels fetch HOT 3
- Tailwind Alpha not working on new projects HOT 1
- cli-hydrogen overwrites vite customLogger
- Pagination not consistent on refresh of page HOT 1
- Source map for Customer Privacy API is outdated
- Issue with Tracking Pixel Events Using Shopify Documentation HOT 4
- Improve the image component HOT 1
- Money component memoization broken
- Unable to create linked Hydrogen repo HOT 4
- href attribute mismatch using the Pagination Component HOT 7
- VariantSelector component: nonexistent variants for product options are showing up as isAvailable: true HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydrogen.