Skip to content

fix(create-vinext-app): generate next env on first run - #2768

Merged
james-elicx merged 2 commits into
mainfrom
codex/create-vinext-app-next-env
Jul 31, 2026
Merged

fix(create-vinext-app): generate next env on first run#2768
james-elicx merged 2 commits into
mainfrom
codex/create-vinext-app-next-env

Conversation

@james-elicx

Copy link
Copy Markdown
Member

Summary

  • omit generated next-env.d.ts from the scaffold and ignore it until vinext dev/build creates it
  • load vinext/types before first run while preserving Node and platform type entries
  • update existing Next-less apps and add regression coverage for typechecking, generation, and dependency installation

Testing

  • vp check --fix
  • vp test run tests/create-vinext-app.test.ts tests/typegen.test.ts tests/init.test.ts
  • vp run create-vinext-app#build

@pkg-pr-new

pkg-pr-new Bot commented Jul 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@2768
npm i https://pkg.pr.new/create-vinext-app@2768
npm i https://pkg.pr.new/@vinext/types@2768
npm i https://pkg.pr.new/vinext@2768

commit: ebd7fe5

@github-actions

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
workers-cache preview production
web preview production

@james-elicx
james-elicx marked this pull request as ready for review July 30, 2026 23:51
@github-actions

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared ebd7fe5 against base 1607104 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 134.5 KB 134.5 KB ⚫ 0.0%
Client entry size (gzip) vinext 122.1 KB 122.1 KB ⚫ -0.0%
Dev server cold start vinext 2.98 s 2.96 s ⚫ -0.6%
Production build time vinext 3.14 s 3.15 s ⚫ +0.3%
RSC entry closure size (gzip) vinext 111.9 KB 111.9 KB ⚫ +0.0%
Server bundle size (gzip) vinext 189.6 KB 189.6 KB ⚫ -0.0%

View detailed results and traces

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

@james-elicx
james-elicx merged commit 350865c into main Jul 31, 2026
76 of 77 checks passed
@james-elicx
james-elicx deleted the codex/create-vinext-app-next-env branch July 31, 2026 00:00
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