Skip to content

Go live

Feature switches

Turn features like filters, forms and sample labels on or off.

src/config/features.ts lets you turn parts of the website on or off without touching any page code. Set a switch to true to show the feature, or false to hide it.

src/config/features.ts
export const features = {  treatmentFilters: true,  demoLabels: false,  newsletter: true,} as const;

Switches in the Spa template

SwitchWhat it controls
treatmentFiltersCategory and duration filters on the treatment menu
journalSearchSearch and category filters on the journal (blog) page
newsletterNewsletter sign-up in the footer
bookingFormThe booking enquiry form
contactFormThe contact form
demoLabelsSmall “Sample content” labels on demo prices, team, reviews and articles
articleTableOfContentsThe table of contents on journal articles

Other templates have switches that fit their content. Each one is described in a comment above it in the file.