Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

support asterix for FEATURES env

Oleg Isonena93bb5dd34f1
diff --git a/apps/designer/app/shared/feature-flags/feature.ts b/apps/designer/app/shared/feature-flags/feature.ts
index 00b1c0aff7..aa1bb18833 100644
--- a/apps/designer/app/shared/feature-flags/feature.ts
+++ b/apps/designer/app/shared/feature-flags/feature.ts
@@ -25,6 +25,9 @@ const readLocal = (): Array<Name> => {
* - by setting it in the browser console: localStorage.features = 'something1, something2', browser defined flag will override server-side flag
*/
export const isFeatureEnabled = (name: Name): boolean => {
+ if (env.FEATURES === "*") {
+ return true;
+ }
const defaultValue = flags[name];
const envValue = parse(env.FEATURES).includes(name);
const localValue = readLocal().includes(name);