I’m setting up a staging environment so I can test everything is running outside of the dev environment provided by the CLI.
I’ve got my app running on a server and selected a test store as per deployment instructions here.
Looking through the function validation docs, there is mention of testing from the dev environment but nothing about deployment. What am I missing here?
In the Test your app section, click Select store and choose a store to test the app.
I am running shopify app deploy --force in a github action everytime I merge new code into the main branch, which is also then deployed to the server, that server is connected to the URLs in my config.
In the other thread they are running the shopify CLI deploy command from the hosting provider, is there any advantage to that as apposed to a Github action? It seems like it shouldn’t make a difference to me.
Sorry if this is becoming spammy but I have a more specific question after some more digging.
Do I need to manually create a validation via the graphql admin API and associate my function with it when not using the dev environment? I can’t find any mention of doing this in the docs but I saw it on a discussion online (though I see the validation queries and mutations in the GraphQl API docs). Does that mean that the rules refferenced in the admin UI, screen-shotted above, are validation objects rather than functions?
Using the GraphiQL tool I can see my function exists in dev and deployed environments, but a validation only exists in the dev environment.
A related question, are validations associated with the app or the store. Will I have a separate validation associated with each store or one validation per function.