I am encountering some issues when I host a version of my custom Shopify app to test. It works perfectly fine when run locally using the ‘npm run dev’ command, but when I build and host the app, I run into problems.
I am able to install the hosted version of the app on a development store, and the frontend displays without any issues. Additionally, the store appears in the ‘installed stores’ list. However, when I attempt to use anything that utilizes the ‘useAuthenticatedFetch’ call for the API, the API throws a 403 Forbidden error. The same API works fine locally, but after building and running the code in production, it causes the error.
I have previously worked on two other app project structures, and it worked fine. I have never encountered this issue before.
Has anyone else come across this issue?