Skip to content

feat: move dev and build lifecycle into the Vite plugin - #3310

Closed
dario-piotrowicz wants to merge 1 commit into
mainfrom
dario/dev-build-commands
Closed

dario-piotrowicz wants to merge 1 commit into
mainfrom
dario/dev-build-commands

Conversation

@dario-piotrowicz

Copy link
Copy Markdown
Member

Make vite dev apply vinext’s server defaults and lockfile handling.

Make vite build own multi-environment builds, hybrid Pages Router bundling, standalone output, prerendering, build credentials, and reports.

Keep vinext dev and vinext build as compatibility aliases, including support for legacy build flags such as --prerender-all.

Update generated projects, examples, CI, scripts, and documentation to use Vite commands directly, with prerendering configured through vinext().

@pkg-pr-new

pkg-pr-new Bot commented Sep 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

@vinext/cloudflare

npm i https://pkg.pr.new/@vinext/cloudflare@3310

create-vinext-app

npm i https://pkg.pr.new/create-vinext-app@3310

@vinext/types

npm i https://pkg.pr.new/@vinext/types@3310

vinext

npm i https://pkg.pr.new/vinext@3310

@cloudflare/workers-response-store

npm i https://pkg.pr.new/@cloudflare/workers-response-store@3310

commit: 10e3433

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original
response-store-demo preview production
workers-cache preview production
kv preview production
static-export preview production
web preview production

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared 10e3433 against base a58a991 using alternating same-runner rounds. Next.js was unchanged and skipped.

0 improved · 0 regressed · 6 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 142.3 KB 142.3 KB ⚫ +0.0%
Client entry size (gzip) vinext 129.7 KB 129.7 KB ⚫ -0.0%
Dev server cold start vinext 3.27 s 3.30 s ⚫ +1.0%
Production build time vinext 3.55 s 3.57 s ⚫ +0.8%
RSC entry closure size (gzip) vinext 127.9 KB 127.8 KB ⚫ -0.0%
Server bundle size (gzip) vinext 226.0 KB 226.0 KB ⚫ -0.0%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

@dario-piotrowicz
dario-piotrowicz marked this pull request as ready for review September 18, 2026 09:08
Make `vite dev` apply vinext’s server defaults and lockfile handling.

Make `vite build` own multi-environment builds, hybrid Pages Router
bundling, standalone output, prerendering, build credentials, and reports.

Keep `vinext dev` and `vinext build` as compatibility aliases, including
support for legacy build flags such as `--prerender-all`.

Update generated projects, examples, CI, scripts, and documentation to use
Vite commands directly, with prerendering configured through `vinext()`.
@dario-piotrowicz

Copy link
Copy Markdown
Member Author

Closing since @james-elicx is picking this up

@dario-piotrowicz
dario-piotrowicz deleted the dario/dev-build-commands branch September 22, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant