When running npm run dev I get this error after the site is compiled. Only happens locally. When deployed to production (Vercel), there is no error.
This started happening after I switched the a different Shopify Shop. I changed all the .env.local. accordingly. It seems like the live Vercel build is recognizing the new env variables, while locally it still tries to use the old Shop URL, which is no longer available.
When running
npm run dev
I get this error after the site is compiled. Only happens locally. When deployed to production (Vercel), there is no error.This started happening after I switched the a different Shopify Shop. I changed all the .env.local. accordingly. It seems like the live Vercel build is recognizing the new env variables, while locally it still tries to use the old Shop URL, which is no longer available.
When looking in DevTools, console tab, I get this:
XXXXX
is the OLD Shopify Shop name, even though I changed it in .env.local.When looking at the live URL on Vercel, it shows the new Shopify URL as it shoul.