commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Is there a reason why search is not working on production but only local development?

Open DavidCWHung opened this issue 8 months ago • 3 comments

I deployed the starter kit on Vercel and connected it with ShopIfy. Then, I found the search on production is not working and being unresponsive, which is not the case during local development. Anyone experience the same and know what's going wrong?

Image

DavidCWHung avatar Mar 02 '25 22:03 DavidCWHung

Hey @DavidCWHung, Just to be thorough, I'd check to see if you have your environments setup on Vercel (env variables). If you do have the environment setup, then the next thing I'd look at is to run your build locally (pnpm run build && pnpm run start) and see if the project works on your machine or if there are any errors.

Let me know what you discover, more than happy to help further.

mcabs3 avatar Mar 31 '25 19:03 mcabs3

Same issue -- followed the guide at: https://vercel.com/docs/integrations/ecommerce/shopify

Search bar works when its running from localhost but doesn't work (typing and pressing enter has no effect) when deployed to production on vercel. Can manually navigate to /search but can't use the search bar.

magks avatar May 13 '25 08:05 magks

Same issue here, search is broken as soon as deployed to Vercel. The search endpoint returns 200 with nothing. It works fine locally though.

fsegouin avatar May 26 '25 15:05 fsegouin

Same here — followed the exact setup and everything works perfectly on localhost, but once deployed to Vercel, the search bar becomes unresponsive. I’ve double-checked my environment variables and build steps, and everything seems fine.

emurmotol avatar Aug 06 '25 12:08 emurmotol