saleor.io-learn
saleor.io-learn copied to clipboard
Token not generated when deployed to Saleor, but works on localhost
Following this tutorial works for localhost. I can see the token being generated. https://learn.saleor.io/checkout/checkout-creation/
When I deploy to Vercel the token is not generated.
data returns checkoutcreate that includes the token though, so this code is not picking it up when on vercel, but it does on localhost.
console.log(data)
{
"checkoutCreate": {
"checkout": {
"token": "e2dd379b-b7dc-4619-9853-55cecb607461",
"__typename": "Checkout"
},
"errors": [],
"__typename": "CheckoutCreate"
}
}
Is the code example correct?