Continuing the discussion from Best way to lazy-load Snipcart in NextJS:
After implementing this solution, I found out that I wasn’t able to perform a test purchase on my localhost any more. I suddenly get the following error, after clicking on a payment option:
snipcart.errors.order_validation.domain_crawling
As you can see in the screenshot, the data-item-url
is set to http://localhost:1313/betonnen-waskommen/finn-kleur-2/, which is the correct URL. The data-api-key
also contains the correct public test API-key.