Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: set NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW default to true (#38362)

Copilotdbd331661510
diff --git a/docker/.env.example b/docker/.env.example
index 746f40df56f..532c78e75ce 100644
--- a/docker/.env.example
+++ b/docker/.env.example
@@ -153,7 +153,7 @@ ENABLE_WEBSITE_WATERCRAWL=true
NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX=false
# Enable preview features still in development (currently the /create and
# /refine slash commands in the "Go to Anything" command palette).
-NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=false
+NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=true
ENABLE_AGENT_V2=false
EXPERIMENTAL_ENABLE_VINEXT=false
diff --git a/docker/envs/core-services/web.env.example b/docker/envs/core-services/web.env.example
index bd788a1b16c..0b75ec7c5b8 100644
--- a/docker/envs/core-services/web.env.example
+++ b/docker/envs/core-services/web.env.example
@@ -24,7 +24,7 @@ ENABLE_WEBSITE_JINAREADER=true
ENABLE_WEBSITE_FIRECRAWL=true
ENABLE_WEBSITE_WATERCRAWL=true
NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX=false
-NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=false
+NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=true
ENABLE_AGENT_V2=false
NEXT_PUBLIC_COOKIE_DOMAIN=
NEXT_PUBLIC_BATCH_CONCURRENCY=5
diff --git a/web/.env.example b/web/.env.example
index 7363ce628f3..ea80c352352 100644
--- a/web/.env.example
+++ b/web/.env.example
@@ -88,7 +88,7 @@ NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX=false
# Enable preview features still in development (currently the /create and
# /refine slash commands in the "Go to Anything" command palette)
-NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=false
+NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=true
# Enable Agent v2 frontend entry points.
NEXT_PUBLIC_ENABLE_AGENT_V2=false
diff --git a/web/docker/entrypoint.sh b/web/docker/entrypoint.sh
index 7fddc825610..2508af3bc61 100755
--- a/web/docker/entrypoint.sh
+++ b/web/docker/entrypoint.sh
@@ -57,7 +57,7 @@ export NEXT_PUBLIC_ENABLE_WEBSITE_JINAREADER=${ENABLE_WEBSITE_JINAREADER:-true}
export NEXT_PUBLIC_ENABLE_WEBSITE_FIRECRAWL=${ENABLE_WEBSITE_FIRECRAWL:-true}
export NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL=${ENABLE_WEBSITE_WATERCRAWL:-true}
export NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX=${NEXT_PUBLIC_ENABLE_SINGLE_DOLLAR_LATEX:-false}
-export NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=${NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW:-false}
+export NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW=${NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW:-true}
export NEXT_PUBLIC_ENABLE_AGENT_V2=${NEXT_PUBLIC_ENABLE_AGENT_V2:-${ENABLE_AGENT_V2:-false}}
export NEXT_PUBLIC_LOOP_NODE_MAX_COUNT=${LOOP_NODE_MAX_COUNT}
export NEXT_PUBLIC_MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT}
diff --git a/web/env.ts b/web/env.ts
index 15d93fa11ea..bcfd55e8a00 100644
--- a/web/env.ts
+++ b/web/env.ts
@@ -69,7 +69,7 @@ const clientSchema = {
* Currently gates the `/create` and `/refine` slash commands in the
* "Go to Anything" command palette (Cmd/Ctrl+K).
*/
- NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW: coercedBoolean.default(false),
+ NEXT_PUBLIC_ENABLE_FEATURE_PREVIEW: coercedBoolean.default(true),
/**
* Cloud-only system-features defaults.