Developer changelog

Subscribe to the changelog to stay up to date on recent changes to Shopify’s APIs and other developer products, as well as preview upcoming features and beta releases.

Get updates by RSS

Shopify Function configurations now use target identifiers

API

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.

[[extensions.targeting]]
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: