product-review/shopify.app.toml

64 lines
1.7 KiB
TOML

# Learn more about configuring your app at https://shopify.dev/docs/apps/tools/cli/configuration
client_id = "d0e4b4fec718e48a645db5e0a60a518b"
name = "product-review"
application_url = "https://example.com"
embedded = true
[build]
automatically_update_urls_on_dev = true
[webhooks]
api_version = "2026-04"
[[webhooks.subscriptions]]
topics = [ "app/uninstalled" ]
uri = "/webhooks/app/uninstalled"
[[webhooks.subscriptions]]
topics = [ "app/scopes_update" ]
uri = "/webhooks/app/scopes_update"
[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "write_metaobject_definitions,write_metaobjects,write_products,read_orders"
[auth]
redirect_urls = [ "https://example.com/api/auth" ]
[product.metafields.app.demo_info]
type = "single_line_text_field"
name = "Demo Source Info"
description = "Tracks products created by the Shopify app template for development"
[product.metafields.app.demo_info.access]
admin = "merchant_read_write"
[metaobjects.app.custom_product_review]
name = "Product Review"
[metaobjects.app.custom_product_review.access]
admin = "merchant_read_write"
storefront = "public_read"
[metaobjects.app.custom_product_review.fields.product_id]
name = "Product ID"
type = "single_line_text_field"
required = true
[metaobjects.app.custom_product_review.fields.customer_name]
name = "Customer Name"
type = "single_line_text_field"
[metaobjects.app.custom_product_review.fields.content]
name = "Review Content"
type = "multi_line_text_field"
[metaobjects.app.custom_product_review.fields.rating]
name = "Rating"
type = "single_line_text_field"
[app_proxy]
url = "/api/reviews"
subpath = "reviews"
prefix = "apps"