Changeset 834bcc3 in Klonkt for src/config/features.js
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/config/features.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/config/features.js
rbb42dfb r834bcc3 1 // Feature -flags (boot-tijd, via env).1 // Feature flags (boot-time, via env). 2 2 // 3 // Lite -modus: zet KLONKT_AUDIO=off in .env om de HELE audio-feature uit te4 // schakelen — geen audio-/playlist-/download-/embed-routes, geen ffmpeg-aanroep,5 // geen speler en geen [[track]]/[[playlist]]-shortcodes. Zo draait Klonkt als6 // lichte blog/foto/EPK-site op een omgeving zónder ffmpeg/exec. Hub én Cirkels7 // blijven gewoon werken (die hangen niet van audio af).3 // Lite mode: set KLONKT_AUDIO=off in .env to disable the ENTIRE audio feature — 4 // no audio/playlist/download/embed routes, no ffmpeg calls, no player, and no 5 // [[track]]/[[playlist]] shortcodes. This lets Klonkt run as a lightweight 6 // blog/photo/EPK site on environments without ffmpeg/exec. Hub and Circles 7 // keep working (they have no audio dependency). 8 8 // 9 // Default = aan (volledige versie). Alleen de letterlijke waarde 'off' schakelt uit.9 // Default = on (full version). Only the literal value 'off' disables it. 10 10 export function audioEnabled() { 11 11 return String(process.env.KLONKT_AUDIO ?? 'on').toLowerCase() !== 'off';
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)