Commit Graph

10 Commits

Author SHA1 Message Date
Sebastian "Sebbie" Silbermann 04294cb47a [ci] Clarify new preview build flow (#93540) 2026-05-06 14:04:19 +00:00
Sebastian "Sebbie" Silbermann 818aa24505 [ci] Allow configuring the base URL for preview builds (#93464) 2026-05-04 19:47:07 +02:00
Hendrik Liebau 87a8fb2f8f Fix preview version in window.next.version for PR builds (#90937)
Preview builds served via `vercel-packages.vercel.app` were showing the
published canary version instead of the PR-specific preview version.
This happened because `create-preview-tarballs.js` updated
`package.json` after the build, but the version was already baked into
the compiled `dist/` files by `setNextVersion` in `taskfile-swc.js`.

This extracts the version computation from `create-preview-tarballs.js`
into a new `set-preview-version.js` script that runs before `pnpm run
build`, so the compiled output naturally includes the correct version.
`create-preview-tarballs.js` now reads the version from
`packages/next/package.json` instead of computing it independently.

## Test Plan

1. Create a new app: `pnpm create next-app@canary`
2. Install the preview build from this PR: `pnpm i
https://vercel-packages.vercel.app/next/commits/06681c21e886a97e39d277808780884151c00318/next`
3. Run `pnpm dev` and inspect `next.version` in DevTools — should show
`16.2.0-preview-06681c21-20260306` instead of the canary version
2026-03-06 12:30:19 +01:00
Benjamin Woodruff a4c1a0cd72 Turbopack: Rename crates/napi to crates/next-napi-bindings and update crate name (#89314)
Disclaimer: This PR is entirely claude+opencode generated.

- Crate name said `next-swc-napi`, which was confusing, because this has a lot more than swc bindings nowdays.
- The crate name didn't match the directory name, which often confused agents.

This does not change the npm package name, as that would likely have a much larger blast radius, and could break more things, to a point where it may not be worth it.
2026-01-30 15:36:57 -08:00
Sebastian "Sebbie" Silbermann b2d6b36145 Fix preview builds for forks (#80833) 2025-06-25 11:38:52 +02:00
Sebastian "Sebbie" Silbermann 257c3f8c51 Enable preview builds for forks (#79648) 2025-05-27 15:30:15 +00:00
Sebastian "Sebbie" Silbermann 522793548a Enforce consistency between packages in preview builds (#79610) 2025-05-27 09:37:01 +02:00
JJ Kasper 6665d5e2f1 Update test new tests for deploy mode (#78737)
This updates our workflow for testing new tests against deploy mode to
allow running against forks as we don't want to introduce flakey tests
in this mode even if opened from forks.
2025-05-01 11:07:37 -07:00
hrmny cad3a51049 refactor: move rust crates to the repo root directory (#67780)
### Why?
In preparation for moving all turbopack crates

Also makes them easier to work with in general.

Closes PACK-3164
2024-07-22 18:41:27 +02:00
Sebastian Silbermann f1488d5d68 Persist package tarballs as GitHub Actions artifacts (#66445) 2024-07-02 15:18:45 +00:00