Skip to content

build(web): stop building vinext in the Docker image - #46616

Merged
hyoban merged 2 commits into
mainfrom
build/docker-drop-vinext
Nov 17, 2026
Merged

hyoban merged 2 commits into
mainfrom
build/docker-drop-vinext

Conversation

@hyoban

@hyoban hyoban commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

The web image built both the Next.js server and the vinext Node server, and picked one at start with EXPERIMENTAL_ENABLE_VINEXT. This PR drops the vinext build, its targets/vinext copy, the toggle in entrypoint.sh, and its default in docker/envs/core-services/web.defaults. The image always runs Next.js and builds faster. Split out of #46585.

Behavior change for self-hosters: setting EXPERIMENTAL_ENABLE_VINEXT=true no longer has any effect. The image runs Next.js without a warning.

The vinext Node build stays available as pnpm -C web build:vinext for local use and the bundle-size workflow.

Verified with docker buildx build --check (no warnings) and sh -n on the entrypoint. A full image build was not run.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

The image built both the Next.js and the vinext Node servers and picked one at
start with EXPERIMENTAL_ENABLE_VINEXT. Drop the vinext build, its standalone
copy, and the toggle, so the image always runs the Next.js server and builds
faster. Setting EXPERIMENTAL_ENABLE_VINEXT=true no longer has an effect.

The vinext Node build stays available for local use and the bundle-size
workflow.
@github-actions github-actions Bot added size:XS This PR changes 0-9 lines, ignoring generated files. web This relates to changes on the web. labels Nov 17, 2026
hyoban added a commit that referenced this pull request Nov 17, 2026
Merge the latest main and drop everything that does not belong to the
Cloudflare Workers build target:
- the module-scope clock fixes and lint rule move to #46614;
- the /templates in-flight fetch fix moves to #46615;
- the Docker vinext removal moves to #46616;
- @vinext/cloudflare is removed (deploy uses cf directly), so vinext goes back
  to 1.4.5.
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.25%. Comparing base (39addda) to head (4d0671f).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #46616   +/-   ##
=======================================
  Coverage   90.25%   90.25%           
=======================================
  Files        6438     6438           
  Lines      405460   405461    +1     
  Branches    81528    81528           
=======================================
+ Hits       365949   365950    +1     
  Misses      33109    33109           
  Partials     6402     6402           
Flag Coverage Δ
dify-ui 92.65% <ø> (ø)
web 90.36% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hyoban
hyoban marked this pull request as ready for review November 17, 2026 14:49
@hyoban
hyoban added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 484404f Nov 17, 2026
85 checks passed
@hyoban
hyoban deleted the build/docker-drop-vinext branch November 17, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants