Developer guide · 4 min
Deployment and configuration
A healthy process needs database connectivity, queue connectivity, provider credentials and a known public API origin.
Install the appearance and coupon update
Copy the updated src folder and apply-radix-toast.cjs beside package.json. Run node apply-radix-toast.cjs in the same frontend checkout you build. It repairs the legacy imports in older address book, account, order details and password reset pages. If an earlier build still references Toastify, clear the generated .next folder and run yarn build again. Restart or redeploy the rebuilt frontend so browsers receive the updated toast provider.
Keep next-themes installed. The shared layout loads the Light, Dark or System preference. Press F8 to focus current notifications.
Run the backend migrations before starting the updated API. RetailCouponsMigration1793973600007 adds the coupon rules and order discounts. VariantRetailDiscount1793973600008 copies existing retail discounts to their current variants so their sale prices carry over.
Publish receipt-of-purchase.html as receipt of purchase in Mailgun to show a separate coupon line in emailed receipts.
Configuration
Keep credentials in environment variables or a secret manager. Confirm API origin, callback URLs, payment provider secrets, email links and Redis policy before release.
Migrations and checks
Run migrations intentionally and validate a full pending-to-paid order flow in the target environment. Never use a production payment provider as a test fixture without agreement.
