App reviews, troubleshooting, and recommendations
Hi there,
I'm getting an issue and I'm not sure how can solve it.
I wrote an app block to make some customization on the storefront. Everything works well with development mode. However, when I deploy the app to fly.io and run it in production mode, the snippets file is not updated on storefont.
I'm not sure Shopify implements any cache layer. Is there any idea to solve it?
I will highly appreciate any suggestion.
Thank you!
Hi,
Do you create or update assets with api rest?
Hi Wil_dev,
Thank you for your suggestion! I found the root cause. It caused by I compile vite generated cli into npm run dev. So when I tried with development mode, it push the snippets to the store dev.
To fix this bug, I have run the command build again so that vite generate correct the snippet files then run: npm run shopify:dev to push the snippet files to the store again.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024