Deploying a function

problem: I can’t access a verification function from my deployed app.

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?

Any tips very much appreciated!

I’ve been digging around and this looks like the closest to my problem

The main difference is that they have chosen the distribution method and installed via a link, I’m not quite at that stage yet.

I think I’m in a bit of a no-mans land between the CLI dev enviroment and having installed a distributed app.

Is there an expectation that you’d have a different experience when following the test instructions for a deploy

After you update your app URLs in the Partner Dashboard, you can test your app in a development store to make sure that it’s configured correctly.

  1. In the Partner Dashboard, go to your app’s Overview page.
  2. 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.