commerce
commerce copied to clipboard
Is there a reason why search is not working on production but only local development?
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?
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.
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.
Same issue here, search is broken as soon as deployed to Vercel. The search endpoint returns 200 with nothing. It works fine locally though.
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.