mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
c11c0942f2
Deploy tests now use the checkout's built JavaScript packages when `NEXT_TEST_VERSION` is unset. The harness reuses the isolated-test packer, includes the tarballs in the deployment source, and installs them through relative `file:` references. The previous published-build workflow remains available through `NEXT_TEST_VERSION`. For example, `NEXT_TEST_VERSION=canary` skips local packing and tests the published canary. Exact versions and CI preview tarball URLs remain supported. Existing CI deploy jobs already set `NEXT_TEST_VERSION`, so their package selection does not change. The harness skips local package preparation when it reuses an existing deployment or invokes a custom deploy script, preserving those workflows. Staged monorepo peer dependencies use matching local versions so npm accepts prerelease builds without conflicting direct-package overrides. Fixture overrides retain their nested rules, including qualified identity overrides with or without an explicit `.` entry. Configuration updates preserve linked source files. Deployments of local JavaScript packages use published SWC binaries matching the local Next.js version. They do not include locally built native binaries because those may target a different platform. **Verification** ``` VERCEL_TURBOPACK_TEST_TEAM=vtest314-next-turbo-e2e-tests \ pnpm test-deploy-turbo test/e2e/app-dir/third-parties/basic.test.ts ``` ``` VERCEL_TEST_TEAM=vtest314-next-turbo-e2e-tests \ pnpm test-deploy-webpack test/e2e/app-dir/third-parties/basic.test.ts ``` Both deploy modes passed. Additional temporary checks, removed afterward, verified that: - Deployments install the local JavaScript packages and use matching local versions for monorepo peers. - Qualified npm overrides preserve a nested `sharp@0.34.5` pin, both with and without an explicit `.` entry. The check resolved `sharp` from Next's own dependency context. - Archive preparation leaves checkout manifests and tarballs unchanged. Repacked archives preserve other package files, permissions, links, and external peer declarations.