New Products not updating on live server
pythlang opened this issue · comments
Hi, I'm having an issue where I can pull products on the localhost but whenever I run npm build
(next build && next export
) with an out
directory being generated, I am noticing that there is no network call to printful to get an updated product manifest when uploading that directory to the live web server; instead, there is a shop.json cache which is being used instead.
Can you please help me fix this issue? This is a new site that I have not seen this on previously.
I was able to solve this.
Hey @pythlang
What seemed to be the issue? Sorry for not getting back to you sooner, I must have missed this when clearing notifications.
Hey @pythlang
What seemed to be the issue? Sorry for not getting back to you sooner, I must have missed this when clearing notifications.
So, the behavior was expected since the server was only hosting a static front end and fetching the last cached version of the store since we were not running the backend code. I fixed this by running the site as intended: with node.
I do have another issue regarding the /api/ we hook for Shopify so I will open a new ticket