Preview route

B2G1 discount app setup

The public preview is loading. Discount creation runs inside Shopify Admin at /app, after the app is installed and the discount function is deployed.

1. Configure the app URL

Set SHOPIFY_APP_URL in .env and the same URL in shopify.app.toml. The current configured URL is:

https://discount.example.com

2. Deploy the function

Run npm run deploy or shopify app deploy. The app page detects the deployed Shopify Function ID after that.

3. Create the discount

Open the app from Shopify Admin. Choose Coupon code, enter a code such as B2G1, select the detected function, then create the discount.

Environment check

API key
configured
App URL
configured
Scopes
read_discounts,write_discounts,read_products