Shopify functions for discounts deployment

We are working on a app to apply discounts to some determine user tags. Reading the doc it is said that for an app extension containing a Shopify function is not needed to host it under an external hosting provider.

We have downloaded one of the official examples related to discounts, when we test it in development, it works, but when we try to deploy it in a selected store for testing purposes, the example app is not showing.

Do we need to deploy it in a hosting provider?

I attach the error.

Hi there :waving_hand:

If you have an extension-only app, ie. only Shopify Functions or Checkout UI extensions then that can be entirely hosted by Shopify.

Currently if your app has an embedded app admin then that portion of the application must be hosted externally. The discount functions application has an embedded app admin, so you will either need to be running the app locally, or deploy it to a hosting provider to test it.

Can I use an static hosting provider (like netlify) ? thanks for the quick reply

You can review this documentation for deploying the embedded application.