As of API version 2023-10 and Shopify CLI 3.49.5, Shopify Functions configuration now uses targets to identify backend extensibility points in Shopify, so that configuring a function is now more like configuring other app extensions.
All Shopify Function APIs now support
[targeting] configuration, with an extension target mapping to a specific WebAssembly export.
target = "purchase.validation.run"
input_query = "src/run.graphql"
export = "run"
Existing functions without
targeting specified will continue to execute and deploy without any changes required. Use of
targeting requires upgrading Shopify CLI to 3.49.4 or higher.
For more information, you can reference: