Feature Flags
Check which features are enabled (reviews, affiliates, etc.).
Updated
On this page
Overview
Feature flags in the global data control which storefront features are enabled. Use these to conditionally show/hide features.
Reading Feature Flags
import dash from "@/lib/dash"
const { global } = await dash.getGlobalData()
// Feature flags are in custom_fields or dedicated fields
if (global.custom_fields?.reviews_enabled === "true") {
// Show review section
}
if (global.custom_fields?.affiliate_program === "true") {
// Show affiliate link
}