Unverified Commit 25045e0d authored by Steven's avatar Steven Committed by GitHub

Merge branch 'canary' into styfle/blur-webp

parents 32860314 fea75474
......@@ -23,5 +23,5 @@
"engines": {
"node": ">=20.9.0"
},
"packageManager": "pnpm@9.6.0"
"packageManager": "pnpm@10.33.0"
}
......@@ -21,5 +21,5 @@
"engines": {
"node": ">=20.9.0"
},
"packageManager": "pnpm@9.6.0"
"packageManager": "pnpm@10.33.0"
}
......@@ -245,38 +245,28 @@ module.exports = (actionInfo) => {
}
}
const options = {
cwd: pkgPath,
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
},
}
let execResult
const pnpmPackExeca = () =>
execa('pnpm', ['pack', '--out', packedPkgPath], {
cwd: pkgPath,
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
},
})
try {
execResult = await handlePackageSpan
await handlePackageSpan
.traceChild('pnpm-pack-try-1')
.traceAsyncFn(() => execa('pnpm', ['pack'], options))
.traceAsyncFn(pnpmPackExeca)
} catch {
execResult = await handlePackageSpan
await handlePackageSpan
.traceChild('pnpm-pack-try-2')
.traceAsyncFn(() => execa('pnpm', ['pack'], options))
.traceAsyncFn(pnpmPackExeca)
}
const { stdout } = execResult
const packedFileName = stdout.trim()
await handlePackageSpan
.traceChild('rename-packed-tar-and-cleanup')
.traceAsyncFn(() =>
Promise.all([
fs.promises.rename(
path.join(pkgPath, packedFileName),
packedPkgPath
),
cleanup?.(),
])
)
.traceChild('cleanup')
.traceAsyncFn(() => cleanup?.())
})
}
)
......
......@@ -14,5 +14,5 @@
"engines": {
"node": ">=20.9.0"
},
"packageManager": "pnpm@9.6.0"
"packageManager": "pnpm@10.33.0"
}
......@@ -19,7 +19,7 @@ concurrency:
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.8.11
TURBO_VERSION: 2.9.4
# --env-mode loose is a breaking change required with turbo 2.x since Strict mode is now the default
# TODO: we should add the relevant envs later to to switch to strict mode
TURBO_ARGS: '-v --env-mode loose --remote-cache-timeout 90 --summarize --log-order stream'
......
......@@ -92,7 +92,7 @@ on:
default: 'chromium'
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.8.11
TURBO_VERSION: 2.9.4
NODE_LTS_VERSION: 20.9.0
# run-tests.js reads `TEST_CONCURRENCY` if no explicit `--concurrency` or `-c`
# argument is provided
......
......@@ -17,7 +17,7 @@ name: Code Freeze
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.8.11
TURBO_VERSION: 2.9.4
NODE_LTS_VERSION: 20
jobs:
......
......@@ -19,7 +19,7 @@ name: Create Release Branch
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.8.11
TURBO_VERSION: 2.9.4
NODE_LTS_VERSION: 20
jobs:
......
......@@ -14,7 +14,7 @@ concurrency:
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.8.11
TURBO_VERSION: 2.9.4
NODE_LTS_VERSION: 20
TEST_CONCURRENCY: 6
......
......@@ -32,7 +32,7 @@ name: Trigger Release
env:
NAPI_CLI_VERSION: 2.18.4
TURBO_VERSION: 2.8.11
TURBO_VERSION: 2.9.4
NODE_LTS_VERSION: 20
jobs:
......
......@@ -9717,6 +9717,7 @@ dependencies = [
"bincode 2.0.1",
"data-encoding",
"sha2",
"smallvec",
"turbo-tasks-macros",
"xxhash-rust",
]
......
......@@ -3,7 +3,7 @@ use bincode::{Decode, Encode};
use turbo_rcstr::RcStr;
use turbo_tasks::{
CollectiblesSource, FxIndexMap, NonLocalValue, OperationValue, OperationVc, ResolvedVc,
TaskInput, Vc, debug::ValueDebugFormat, get_effects, trace::TraceRawVcs,
TaskInput, Vc, debug::ValueDebugFormat, take_effects, trace::TraceRawVcs,
};
use turbopack_core::{diagnostics::Diagnostic, issue::CollectibleIssuesExt};
......@@ -40,7 +40,7 @@ async fn entrypoints_without_collectibles_operation(
let _ = entrypoints.resolve().strongly_consistent().await?;
entrypoints.drop_collectibles::<Box<dyn Diagnostic>>();
entrypoints.drop_issues();
let _ = get_effects(entrypoints).await?;
let _ = take_effects(entrypoints).await?;
Ok(entrypoints.connect())
}
......
......@@ -12,7 +12,9 @@ use next_api::{
route::{Endpoint, EndpointOutputPaths, Route, endpoint_write_to_disk},
};
use turbo_rcstr::{RcStr, rcstr};
use turbo_tasks::{ReadConsistency, ResolvedVc, TransientInstance, TurboTasks, Vc, get_effects};
use turbo_tasks::{
Effects, ReadConsistency, ReadRef, ResolvedVc, TransientInstance, TurboTasks, Vc, take_effects,
};
use turbo_tasks_backend::{NoopBackingStorage, TurboTasksBackend};
use turbo_tasks_malloc::TurboMalloc;
......@@ -186,21 +188,21 @@ pub async fn render_routes(
html_endpoint,
data_endpoint: _,
} => {
endpoint_write_to_disk_with_effects(*html_endpoint).await?;
endpoint_write_to_disk_with_apply(html_endpoint).await?;
}
Route::PageApi { endpoint } => {
endpoint_write_to_disk_with_effects(*endpoint).await?;
endpoint_write_to_disk_with_apply(endpoint).await?;
}
Route::AppPage(routes) => {
for route in routes {
endpoint_write_to_disk_with_effects(*route.html_endpoint).await?;
endpoint_write_to_disk_with_apply(route.html_endpoint).await?;
}
}
Route::AppRoute {
original_name: _,
endpoint,
} => {
endpoint_write_to_disk_with_effects(*endpoint).await?;
endpoint_write_to_disk_with_apply(endpoint).await?;
}
Route::Conflict => {
tracing::info!("WARN: conflict {}", name);
......@@ -243,21 +245,43 @@ pub async fn render_routes(
Ok(stream.len())
}
#[turbo_tasks::function]
async fn endpoint_write_to_disk_with_effects(
async fn endpoint_write_to_disk_with_apply(
endpoint: ResolvedVc<Box<dyn Endpoint>>,
) -> Result<Vc<EndpointOutputPaths>> {
let op = endpoint_write_to_disk_operation(endpoint);
let result = op.resolve().strongly_consistent().await?;
get_effects(op).await?.apply().await?;
Ok(*result)
}
) -> Result<ReadRef<EndpointOutputPaths>> {
#[turbo_tasks::function(operation)]
fn inner_operation(endpoint: ResolvedVc<Box<dyn Endpoint>>) -> Vc<EndpointOutputPaths> {
// we must wrap this in an operation so we can get the Effects collectibles
endpoint_write_to_disk(*endpoint)
}
#[turbo_tasks::function(operation)]
pub fn endpoint_write_to_disk_operation(
endpoint: ResolvedVc<Box<dyn Endpoint>>,
) -> Vc<EndpointOutputPaths> {
endpoint_write_to_disk(*endpoint)
#[turbo_tasks::value(serialization = "none")]
struct WithEffects {
output_paths: ReadRef<EndpointOutputPaths>,
effects: Effects,
}
#[turbo_tasks::function(operation)]
pub async fn inner_operation_with_effects(
endpoint: ResolvedVc<Box<dyn Endpoint>>,
) -> Result<Vc<WithEffects>> {
let op = inner_operation(endpoint);
let output_paths = op.read_strongly_consistent().await?;
let effects = take_effects(op).await?;
Ok(WithEffects {
output_paths,
effects,
}
.cell())
}
let op = inner_operation_with_effects(endpoint);
let WithEffects {
output_paths,
effects,
} = &*op.read_strongly_consistent().await?;
effects.apply().await?;
Ok(output_paths.clone())
}
async fn hmr(
......
......@@ -49,9 +49,11 @@ use turbo_rcstr::{RcStr, rcstr};
use turbo_tasks::{
Effects, FxIndexSet, NonLocalValue, OperationValue, OperationVc, PrettyPrintError, ReadRef,
ResolvedVc, TaskInput, TransientInstance, TryJoinIterExt, TurboTasksApi, TurboTasksCallApi,
UpdateInfo, Vc, get_effects,
UpdateInfo, Vc, mark_top_level_task,
message_queue::{CompilationEvent, Severity},
take_effects,
trace::TraceRawVcs,
unmark_top_level_task_may_leak_eventually_consistent_state,
};
use turbo_tasks_backend::{BackingStorage, db_invalidation::invalidation_reasons};
use turbo_tasks_fs::{
......@@ -1840,7 +1842,7 @@ async fn hmr_update_with_issues_operation(
let filter = project.issue_filter();
let issues = get_issues(update_op, filter).await?;
let diagnostics = get_diagnostics(update_op).await?;
let effects = Arc::new(get_effects(update_op).await?);
let effects = Arc::new(take_effects(update_op).await?);
Ok(HmrUpdateWithIssues {
update,
issues,
......@@ -1874,6 +1876,8 @@ pub fn project_hmr_events(
let chunk_name: RcStr = outer_chunk_name.clone();
let session = session.clone();
async move {
// HACK(bgw): Remove this unmark call
unmark_top_level_task_may_leak_eventually_consistent_state();
let project = container.project().to_resolved().await?;
let state = project
.hmr_version_state(chunk_name.clone(), hmr_target, session)
......@@ -1893,7 +1897,11 @@ pub fn project_hmr_events(
diagnostics,
effects,
} = &*update;
// HACK(bgw): Remove this mark call
mark_top_level_task();
effects.apply().await?;
// HACK(bgw): Remove this unmark call
unmark_top_level_task_may_leak_eventually_consistent_state();
match &**update {
Update::Missing | Update::None => {}
Update::Total(TotalUpdate { to }) => {
......@@ -1975,7 +1983,7 @@ async fn get_hmr_chunk_names_with_issues_operation(
let filter = issue_filter_from_container(container);
let issues = get_issues(hmr_chunk_names_op, filter).await?;
let diagnostics = get_diagnostics(hmr_chunk_names_op).await?;
let effects = Arc::new(get_effects(hmr_chunk_names_op).await?);
let effects = Arc::new(take_effects(hmr_chunk_names_op).await?);
Ok(HmrChunkNamesWithIssues {
chunk_names: hmr_chunk_names,
issues,
......
......@@ -15,7 +15,7 @@ use rustc_hash::FxHashMap;
use serde::Serialize;
use turbo_rcstr::RcStr;
use turbo_tasks::{
Effects, OperationVc, ReadRef, TaskId, TryJoinIterExt, Vc, VcValueType, get_effects,
Effects, OperationVc, ReadRef, TaskId, TryJoinIterExt, Vc, VcValueType, take_effects,
};
use turbo_tasks_fs::FileContent;
use turbopack_core::{
......@@ -486,7 +486,7 @@ pub async fn strongly_consistent_catch_collectables<R: VcValueType + Send>(
let result = source_op.read_strongly_consistent().await;
let issues = get_issues(source_op, filter).await?;
let diagnostics = get_diagnostics(source_op).await?;
let effects = Arc::new(get_effects(source_op).await?);
let effects = Arc::new(take_effects(source_op).await?);
let result = if result.is_err() && issues.iter().any(|i| i.severity <= IssueSeverity::Error) {
None
......
......@@ -70,7 +70,11 @@ Optionally, a config object can be exported alongside the Proxy function. This o
### Matcher
The `matcher` option allows you to target specific paths for the Proxy to run on. You can specify these paths in several ways:
The `matcher` option allows you to target specific paths for the Proxy to run on.
Without a `matcher`, Proxy runs on **every request**, including static files (`_next/static`), image optimizations (`_next/image`), and assets in the `public/` folder. Consider using a [negative match pattern](#negative-matching) to exclude these paths, otherwise auth logic or redirects can unintentionally block CSS, JS, or images from loading.
You can specify paths in several ways:
- For a single path: Directly use a string to define the path, like `'/about'`.
- For multiple paths: Use an array to list multiple paths, such as `matcher: ['/about', '/contact']`, which applies the Proxy to both `/about` and `/contact`.
......
......@@ -15,5 +15,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "16.2.1-canary.22"
"version": "16.2.1-canary.24"
}
\ No newline at end of file
......@@ -301,7 +301,7 @@
"tree-kill": "1.2.2",
"tsec": "0.2.1",
"tsx": "4.19.2",
"turbo": "2.8.11",
"turbo": "2.9.4",
"typescript": "5.9.2",
"typescript-eslint": "8.46.0",
"unfetch": "4.2.0",
......@@ -315,9 +315,9 @@
},
"engines": {
"node": ">=20.9.0",
"pnpm": "9.6.0"
"pnpm": "10.33.0"
},
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@10.33.0",
"pnpm": {
"overrides": {
"webpack": "5.98.0",
......
{
"name": "create-next-app",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"keywords": [
"react",
"next",
......
{
"name": "eslint-config-next",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "ESLint configuration used by Next.js.",
"license": "MIT",
"repository": {
......@@ -12,7 +12,7 @@
"dist"
],
"dependencies": {
"@next/eslint-plugin-next": "16.2.1-canary.22",
"@next/eslint-plugin-next": "16.2.1-canary.24",
"eslint-import-resolver-node": "^0.3.6",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.32.0",
......
{
"name": "@next/eslint-plugin-internal",
"private": true,
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "ESLint plugin for working on Next.js.",
"exports": {
".": "./src/eslint-plugin-internal.js"
......
{
"name": "@next/eslint-plugin-next",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "ESLint plugin for Next.js.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
......
{
"name": "@next/font",
"private": true,
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"repository": {
"url": "vercel/next.js",
"directory": "packages/font"
......
{
"name": "@next/bundle-analyzer",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"main": "index.js",
"types": "index.d.ts",
"license": "MIT",
......
{
"name": "@next/codemod",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"license": "MIT",
"repository": {
"type": "git",
......
{
"name": "@next/env",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"keywords": [
"react",
"next",
......
{
"name": "@next/mdx",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"main": "index.js",
"license": "MIT",
"repository": {
......
{
"name": "@next/playwright",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-playwright"
......
{
"name": "@next/plugin-storybook",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
......
{
"name": "@next/polyfill-module",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
......
{
"name": "@next/polyfill-nomodule",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
......
{
"name": "@next/routing",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"keywords": [
"react",
"next",
......
{
"name": "next-rspack",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-rspack"
......
{
"name": "@next/swc",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"private": true,
"files": [
"native/"
......
......@@ -1148,5 +1148,7 @@
"1147": "Turbopack database compaction is not supported on this platform",
"1148": "webToReadable cannot be used in the edge runtime",
"1149": "Node.js Readable cannot be teed in the edge runtime",
"1150": "Node.js Readable cannot be converted to a web stream in the edge runtime"
"1150": "Node.js Readable cannot be converted to a web stream in the edge runtime",
"1151": "%s is being parsed as a normalized route, but it has a route group segment.",
"1152": "%s is being parsed as a normalized route, but it has a parallel route segment."
}
{
"name": "next",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
......@@ -100,7 +100,7 @@
]
},
"dependencies": {
"@next/env": "16.2.1-canary.22",
"@next/env": "16.2.1-canary.24",
"@swc/helpers": "0.5.15",
"baseline-browser-mapping": "^2.9.19",
"caniuse-lite": "^1.0.30001579",
......@@ -164,11 +164,11 @@
"@modelcontextprotocol/sdk": "1.18.1",
"@mswjs/interceptors": "0.23.0",
"@napi-rs/triples": "1.2.0",
"@next/font": "16.2.1-canary.22",
"@next/polyfill-module": "16.2.1-canary.22",
"@next/polyfill-nomodule": "16.2.1-canary.22",
"@next/react-refresh-utils": "16.2.1-canary.22",
"@next/swc": "16.2.1-canary.22",
"@next/font": "16.2.1-canary.24",
"@next/polyfill-module": "16.2.1-canary.24",
"@next/polyfill-nomodule": "16.2.1-canary.24",
"@next/react-refresh-utils": "16.2.1-canary.24",
"@next/swc": "16.2.1-canary.24",
"@opentelemetry/api": "1.6.0",
"@playwright/test": "1.58.2",
"@rspack/core": "1.6.7",
......
......@@ -96,7 +96,9 @@ class NextRootCommand extends Command {
os.cpus().some((cpu) => cpu.model.includes('Apple'))
) {
warn(
'You are running Next.js on an Apple Silicon Mac with Rosetta 2 translation, which may cause degraded performance.'
'You are running Next.js on an Apple Silicon Mac with Rosetta 2 ' +
'translation, which may cause degraded performance. You may have ' +
'accidentally installed an x86-64 version of Node.js.'
)
}
......
......@@ -2,7 +2,6 @@ import {
AppRouteRouteModule,
type AppRouteRouteHandlerContext,
type AppRouteRouteModuleOptions,
type AppRouteUserlandModule,
} from '../../server/route-modules/app-route/module.compiled'
import { RouteKind } from '../../server/route-kind'
import { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'
......@@ -36,7 +35,6 @@ import {
type ResponseCacheEntry,
type ResponseGenerator,
} from '../../server/response-cache'
import * as userland from 'VAR_USERLAND'
// These are injected by the loader afterwards. This is injected as a variable
// instead of a replacement because this could also be `undefined` instead of
......@@ -59,15 +57,24 @@ const routeModule = new AppRouteRouteModule({
relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',
resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',
nextConfigOutput,
// The static import is used for initialization (methods, dynamic, etc.).
userland: userland as AppRouteUserlandModule,
// In Turbopack dev mode, also provide a getter that calls require() on every
// request. This re-reads from devModuleCache so HMR updates are picked up,
// and the async wrapper unwraps async-module Promises (ESM-only
// serverExternalPackages) automatically.
// Always use a lazy require factory so that:
// - In dev: devRequestTimingInternalsEnd is set before userland executes,
// correctly attributing module load time to application-code rather than
// framework internals.
// - In all modes: async modules (route files with top-level await) are
// handled correctly — require() returns a Promise for such modules, which
// ensureUserland() awaits before the first request is handled. Eagerly
// calling require() would pass that Promise directly to the constructor
// and break _initFromUserland().
userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),
// In Turbopack dev mode, also provide a synchronous per-request getter so
// server HMR updates are picked up without re-executing the entry chunk.
// Using require() (synchronous) avoids adding async overhead that would be
// incorrectly attributed to application-code time in devRequestTiming.
...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER
? {
getUserland: () => import('VAR_USERLAND'),
getUserland: () =>
require('VAR_USERLAND') as typeof import('VAR_USERLAND'),
}
: {}),
})
......
......@@ -80,7 +80,7 @@ import type {
} from '../server/route-modules/app-route/module'
import type { FunctionsConfigManifest, ManifestRoute } from './index'
import { getNamedRouteRegex } from '../shared/lib/router/utils/route-regex'
import { parseAppRoute } from '../shared/lib/router/routes/app'
import { parseNormalizedAppRoute } from '../shared/lib/router/routes/app'
import { fillMetadataSegment } from '../lib/metadata/get-metadata-route'
import { STATIC_METADATA_IMAGES } from '../lib/metadata/is-metadata-route'
......@@ -836,7 +836,7 @@ export async function isPageStatic({
appConfig.revalidate = 0
}
const route = parseAppRoute(page, true)
const route = parseNormalizedAppRoute(page)
// If the page is dynamic and we're not in edge runtime, then we need to
// build the static paths. The edge runtime doesn't support static
......
......@@ -4,7 +4,7 @@ import {
} from '../shared/lib/router/utils/get-segment-param'
import {
isInterceptionAppRoute,
parseAppRoute,
parseNormalizedAppRoute,
type NormalizedAppRoute,
type NormalizedAppRouteSegment,
} from '../shared/lib/router/routes/app'
......@@ -143,8 +143,8 @@ function validateAppRoute(route: NormalizedAppRoute): void {
*/
function parseAndValidateAppPath(path: string): NormalizedAppRoute {
// Fast parse the route information. We're expecting this to be a normalized
// route, so we pass `true` to the `parseAppRoute` function.
const route = parseAppRoute(path, true)
// route.
const route = parseNormalizedAppRoute(path)
// Slow walk the data from the route in order to validate it.
validateAppRoute(route)
......
......@@ -36,6 +36,7 @@ export type NextBuildOptions = {
}
const nextBuild = async (options: NextBuildOptions, directory?: string) => {
process.title = `next-build (v${process.env.__NEXT_VERSION})`
process.on('SIGTERM', () => {
saveCpuProfile()
process.exit(143)
......
......@@ -88,6 +88,11 @@ export async function exportAppRoute(
}
try {
// Ensure the userland module is fully loaded before accessing it. This is
// required for route files that use top-level await: require() returns a
// Promise for async modules, so module.userland would be undefined until
// the Promise resolves.
await module.ensureUserland()
const userland = module.userland
// we don't bail from the static optimization for
// metadata routes, since it's app-route we can always append /route suffix.
......
......@@ -351,7 +351,7 @@ export const experimentalSchema = {
webpackMemoryOptimizations: z.boolean().optional(),
turbopackMemoryLimit: z.number().optional(),
turbopackPluginRuntimeStrategy: z
.enum(['workerThreads', 'childProcesses'])
.enum(['workerThreads', 'childProcesses', 'forceWorkerThreads'])
.optional(),
turbopackMinify: z.boolean().optional(),
turbopackFileSystemCacheForDev: z.boolean().optional(),
......
......@@ -628,9 +628,32 @@ export interface ExperimentalConfig {
turbopackMemoryLimit?: number
/**
* Selects the runtime backend used by Turbopack for Node.js evaluation.
*/
turbopackPluginRuntimeStrategy?: 'workerThreads' | 'childProcesses'
* Selects the backend used by Turbopack for Node.js evaluation, e.g. webpack
* loaders, Babel, or PostCSS.
*
* This defaults to `'childProcesses'`, which creates a pool of child node.js
* processes and communciates with them over sockets.
*
* `'workerThreads'` should use less memory and CPU. It may become the default
* in a future version of Next.js.
*
* Node.js 24.13.1+ or 25.4.0+ is required for `'workerThreads'` due to memory
* safety bugs in older versions. If you use this option with an older Node.js
* version, the setting is ignored and a warning is emitted. Bun and Deno are
* assumed safe, and are not checked for compatibility.
*
* - Fix for memory safety issue: <https://github.com/nodejs/node/pull/55877>
* - Backported to 25.4.0: <https://github.com/nodejs/node/pull/61400>
* - Backported to 24.13.1: <https://github.com/nodejs/node/pull/61661>
*
* `'forceWorkerThreads'` behaves like `'workerThreads'` but skips the
* version-gated downgrade. You should not use this option unless you're
* confident that the version check in Next.js is wrong.
*/
turbopackPluginRuntimeStrategy?:
| 'workerThreads'
| 'childProcesses'
| 'forceWorkerThreads'
/**
* Enable minification. Defaults to true in build mode and false in dev mode.
......
......@@ -2,6 +2,7 @@ import { existsSync } from 'fs'
import { basename, extname, join, relative, isAbsolute, resolve } from 'path'
import { pathToFileURL } from 'url'
import findUp from 'next/dist/compiled/find-up'
import semver from 'next/dist/compiled/semver'
import * as Log from '../build/output/log'
import * as ciEnvironment from '../server/ci-info'
import {
......@@ -1453,6 +1454,52 @@ function assignDefaultsAndValidate(
result.experimental.useCache = result.cacheComponents
}
// Node.js version gate for turbopackPluginRuntimeStrategy: 'workerThreads'.
// Older Node.js versions have memory safety bugs in worker threads. Bun and
// Deno are not affected by this check.
{
const strategy = result.experimental.turbopackPluginRuntimeStrategy
const isForced = strategy === 'forceWorkerThreads'
if (strategy === 'workerThreads' || isForced) {
// Normalize 'forceWorkerThreads' → 'workerThreads' for Rust/serde
result.experimental.turbopackPluginRuntimeStrategy = 'workerThreads'
const isBun = !!process.versions.bun
const isDeno = !!process.versions.deno
if (!isBun && !isDeno) {
const nodeVersion = process.versions.node
const WORKER_THREADS_SAFE_RANGE = '>=24.13.1 <25.0.0 || >=25.4.0'
if (
!semver.satisfies(nodeVersion, WORKER_THREADS_SAFE_RANGE, {
includePrerelease: true,
})
) {
if (isForced) {
Log.warn(
`\`experimental.turbopackPluginRuntimeStrategy = ` +
`'forceWorkerThreads'\` has been enabled, but you're using ` +
`Node.js ${nodeVersion}, which has known memory safety bugs ` +
`with worker threads used from the Node-API. You may ` +
`experience crashes, segmentation faults, or other ` +
`instability. Upgrade to Node.js ${WORKER_THREADS_SAFE_RANGE}.`
)
} else {
Log.warn(
`\`experimental.turbopackPluginRuntimeStrategy = ` +
`'workerThreads'\` is set but has been ` +
`ignored because you're using Node.js ${nodeVersion}, which ` +
`has memory safety bugs in worker threads. Falling back to ` +
`'childProcesses'. Upgrade to Node.js ` +
`${WORKER_THREADS_SAFE_RANGE}.`
)
result.experimental.turbopackPluginRuntimeStrategy =
'childProcesses'
}
}
}
}
}
// Store the distDirRoot in the config before it is modified for development mode
;(result as NextConfigComplete).distDirRoot = result.distDir
// Pre-compute the effective hash salt (used by both Webpack and Turbopack).
......
......@@ -1856,6 +1856,11 @@ export async function createHotReloaderTurbopack(
__next__clear_chunk_cache__()
}
// Reset the server HMR handler registry. All server runtime chunks are
// cleared from require.cache above; when they're next required they'll
// re-register into this Map and reinstall the routing dispatcher.
;(globalThis as any).__turbopack_server_hmr_handlers__ = new Map()
// Clear all edge contexts
await clearAllModuleContexts()
......
......@@ -26,7 +26,7 @@ import { collectRootParamKeys } from '../../build/segment-config/app/collect-roo
import { buildAppStaticPaths } from '../../build/static-paths/app'
import { buildPagesStaticPaths } from '../../build/static-paths/pages'
import { createIncrementalCache } from '../../export/helpers/create-incremental-cache'
import { parseAppRoute } from '../../shared/lib/router/routes/app'
import { parseNormalizedAppRoute } from '../../shared/lib/router/routes/app'
type RuntimeConfig = {
pprConfig: ExperimentalPPRConfig | undefined
......@@ -119,7 +119,7 @@ export async function loadStaticPaths({
routeModule as AppPageRouteModule | AppRouteRouteModule
)
const route = parseAppRoute(pathname, true)
const route = parseNormalizedAppRoute(pathname)
if (route.dynamicSegments.length === 0) {
throw new InvariantError(
`Expected a dynamic route, but got a static route: ${pathname}`
......
......@@ -1385,29 +1385,22 @@ export async function renderToHTMLImpl(
| {}
| Awaited<ReturnType<typeof loadDocumentInitialProps>>
const [rawStyledJsxInsertedHTML, content] = await Promise.all([
renderToString(styledJsxInsertedHTML()),
(async () => {
if (hasDocumentGetInitialProps) {
documentInitialPropsRes = await loadDocumentInitialProps(renderShell)
if (documentInitialPropsRes === null) return null
const { docProps } = documentInitialPropsRes as any
return docProps.html
} else {
documentInitialPropsRes = {}
const stream = await renderShell(App, Component)
await stream.allReady
return streamToString(stream)
}
})(),
])
if (content === null) {
return null
let content: string | null
if (hasDocumentGetInitialProps) {
documentInitialPropsRes = await loadDocumentInitialProps(renderShell)
if (documentInitialPropsRes === null) {
content = null
} else {
const { docProps } = documentInitialPropsRes as any
content = docProps.html
}
} else {
documentInitialPropsRes = {}
const stream = await renderShell(App, Component)
await stream.allReady
content = await streamToString(stream)
}
const contentHTML = rawStyledJsxInsertedHTML + content
// @ts-ignore: documentInitialPropsRes is set
const { docProps } = (documentInitialPropsRes as any) || {}
const documentElement = (htmlProps: any) => {
......@@ -1427,6 +1420,17 @@ export async function renderToHTMLImpl(
jsxStyleRegistry.flush()
}
// Registry is now flushed; rawStyledJsxInsertedHTML will be empty.
const rawStyledJsxInsertedHTML = await renderToString(
styledJsxInsertedHTML()
)
if (content === null) {
return null
}
const contentHTML = rawStyledJsxInsertedHTML + content
return {
contentHTML,
documentElement,
......
......@@ -3,7 +3,7 @@ import type { FallbackRouteParam } from '../../build/static-paths/types'
import type { DynamicParamTypesShort } from '../../shared/lib/app-router-types'
import { dynamicParamTypes } from '../app-render/get-short-dynamic-param-type'
import type AppPageRouteModule from '../route-modules/app-page/module'
import { parseAppRoute } from '../../shared/lib/router/routes/app'
import { parseNormalizedAppRoute } from '../../shared/lib/router/routes/app'
import { extractPathnameRouteParamSegmentsFromLoaderTree } from '../../build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree'
import { getParamProperties } from '../../shared/lib/router/utils/get-segment-param'
......@@ -119,7 +119,7 @@ export function getFallbackRouteParams(
page: string,
routeModule: AppPageRouteModule
) {
const route = parseAppRoute(page, true)
const route = parseNormalizedAppRoute(page)
// Extract the pathname-contributing segments from the loader tree. This
// mirrors the logic in buildAppStaticPaths where we determine which segments
......
......@@ -108,10 +108,13 @@ export abstract class RouteModule<
> {
/**
* The userland module. This is the module that is exported from the user's
* code. This is marked as readonly to ensure that the module is not mutated
* because the module (when compiled) only provides getters.
* code. Exposed as a getter so subclasses can override with lazy loading.
*/
public readonly userland: Readonly<U>
protected _userland: Readonly<U>
get userland(): Readonly<U> {
return this._userland
}
/**
* The definition of the route.
......@@ -135,7 +138,7 @@ export abstract class RouteModule<
distDir,
relativeProjectDir,
}: RouteModuleOptions<D, U>) {
this.userland = userland
this._userland = userland
this.definition = definition
this.isDev = !!process.env.__NEXT_DEV_SERVER
this.distDir = distDir
......
......@@ -173,14 +173,17 @@ export function isInterceptionAppRoute(
)
}
export function parseAppRoute(
// Bitmask for which non-URL segment types to allow during parsing.
// By default, route groups and parallel routes are rejected because
// they should have been stripped by normalizeAppPath. These flags
// let callers opt in to allowing specific types.
const OnlyRoutableSegments = /* */ 0b00
const AllowParallelSegments = /* */ 0b01
const AllowGroupSegments = /* */ 0b10
function parseAppRouteImpl(
pathname: string,
normalized: true
): NormalizedAppRoute
export function parseAppRoute(pathname: string, normalized: false): AppRoute
export function parseAppRoute(
pathname: string,
normalized: boolean
allowedTypes: number
): AppRoute | NormalizedAppRoute {
const pathnameSegments = pathname.split('/').filter(Boolean)
......@@ -202,12 +205,20 @@ export function parseAppRoute(
}
if (
normalized &&
(appSegment.type === 'route-group' ||
appSegment.type === 'parallel-route')
appSegment.type === 'route-group' &&
!(allowedTypes & AllowGroupSegments)
) {
throw new InvariantError(
`${pathname} is being parsed as a normalized route, but it has a route group segment.`
)
}
if (
appSegment.type === 'parallel-route' &&
!(allowedTypes & AllowParallelSegments)
) {
throw new InvariantError(
`${pathname} is being parsed as a normalized route, but it has a route group or parallel route segment.`
`${pathname} is being parsed as a normalized route, but it has a parallel route segment.`
)
}
......@@ -219,12 +230,8 @@ export function parseAppRoute(
throw new Error(`Invalid interception route: ${pathname}`)
}
interceptingRoute = normalized
? parseAppRoute(parts[0], true)
: parseAppRoute(parts[0], false)
interceptedRoute = normalized
? parseAppRoute(parts[1], true)
: parseAppRoute(parts[1], false)
interceptingRoute = parseAppRouteImpl(parts[0], allowedTypes)
interceptedRoute = parseAppRouteImpl(parts[1], allowedTypes)
interceptionMarker = appSegment.interceptionMarker
}
}
......@@ -234,7 +241,7 @@ export function parseAppRoute(
)
return {
normalized,
normalized: allowedTypes === OnlyRoutableSegments,
pathname,
segments,
dynamicSegments,
......@@ -243,3 +250,21 @@ export function parseAppRoute(
interceptedRoute,
}
}
/**
* Parse an app route that has been fully normalized (no @slot or ()
* group segments). Throws if either is present.
*/
export function parseNormalizedAppRoute(pathname: string): NormalizedAppRoute {
return parseAppRouteImpl(pathname, OnlyRoutableSegments) as NormalizedAppRoute
}
/**
* Parse an app route that may contain @slot segments but not ()
* group segments. Slot segments are preserved as parallel-route
* type segments so callers can distinguish routes in different
* parallel slots.
*/
export function parseAppRouteWithSlots(pathname: string): AppRoute {
return parseAppRouteImpl(pathname, AllowParallelSegments) as AppRoute
}
......@@ -5,7 +5,7 @@ import type { Params } from '../../../../server/request/params'
import type { DynamicParamTypesShort } from '../../app-router-types'
import { InvariantError } from '../../invariant-error'
import { parseLoaderTree } from './parse-loader-tree'
import { parseAppRoute, parseAppRouteSegment } from '../routes/app'
import { parseNormalizedAppRoute, parseAppRouteSegment } from '../routes/app'
import { resolveParamValue } from './resolve-param-value'
/**
......@@ -53,7 +53,7 @@ export function interpolateParallelRouteParams(
]
// Parse the route from the provided page path.
const route = parseAppRoute(pagePath, true)
const route = parseNormalizedAppRoute(pagePath)
while (stack.length > 0) {
const { tree, depth } = stack.pop()!
......
{
"name": "@next/react-refresh-utils",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"description": "An experimental package providing utilities for React Refresh.",
"repository": {
"url": "vercel/next.js",
......
{
"name": "@next/third-parties",
"version": "16.2.1-canary.22",
"version": "16.2.1-canary.24",
"repository": {
"url": "vercel/next.js",
"directory": "packages/third-parties"
......@@ -26,7 +26,7 @@
"third-party-capital": "1.0.20"
},
"devDependencies": {
"next": "16.2.1-canary.22",
"next": "16.2.1-canary.24",
"outdent": "0.8.0",
"prettier": "2.5.1",
"typescript": "5.9.2"
......
This diff is collapsed.
......@@ -7,3 +7,25 @@ packages:
- 'turbopack/crates/turbopack-tests/tests/execution'
- 'turbopack/packages/*'
updateNotifier: false
publicHoistPattern:
- '*eslint*'
allowBuilds:
'@ast-grep/cli': true
ignoredBuiltDependencies:
- '@datadog/native-appsec'
- '@datadog/native-metrics'
- '@datadog/pprof'
- '@swc/core'
- '@tailwindcss/oxide'
- core-js
- cpu-features
- dd-trace
- esbuild
- msw
- nx
- playwright-chromium
- protobufjs
- sharp
- ssh2
- unrs-resolver
- wasm-pack
......@@ -65,6 +65,7 @@ import fsp from 'fs/promises'
`next@${nextVersion}`,
'--lockfile=false',
'--ignore-workspace',
'--ignore-scripts',
]
if (preferOffline) {
args.push('--prefer-offline')
......
......@@ -72,6 +72,6 @@ const writeJson = async (filePath, data) =>
private: true,
workspaces: ['packages/*'],
scripts: {},
packageManager: 'pnpm@9.6.0',
packageManager: 'pnpm@10.33.0',
})
})()
......@@ -9,7 +9,6 @@ import stripAnsi from 'strip-ansi'
describe('with turbopack.ignoreIssue config', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
nextConfig: {
turbopack: {
ignoreIssue: [
......@@ -47,7 +46,6 @@ import stripAnsi from 'strip-ansi'
describe('without turbopack.ignoreIssue config', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
......
......@@ -3,7 +3,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('app dir - dynamic error trace', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
......
......@@ -157,6 +157,43 @@ describe('server-hmr', () => {
})
describe('metadata route hmr', () => {
itTurbopackDev(
'does not prevent page hmr when metadata route has been loaded',
async () => {
// Load the manifest route first. This causes the manifest runtime to
// register its __turbopack_server_hmr_apply__ on globalThis, which
// would overwrite the page's handler if the multi-cast registry is
// broken.
await next.fetch('/manifest.webmanifest')
const browser = await next.browser('/module-preservation')
// Patch the page to a known unique string regardless of prior test state
await next.patchFile('app/module-preservation/page.tsx', (content) =>
content.replace(/<p id="greeting">.*?<\/p>/, () => {
return '<p id="greeting">metadata-hmr-test-initial</p>'
})
)
await retry(async () => {
const text = await browser.elementByCss('#greeting').text()
expect(text).toBe('metadata-hmr-test-initial')
})
await next.patchFile('app/module-preservation/page.tsx', (content) =>
content.replace(
'metadata-hmr-test-initial',
'metadata-hmr-test-updated'
)
)
await retry(async () => {
const text = await browser.elementByCss('#greeting').text()
expect(text).toBe('metadata-hmr-test-updated')
})
}
)
it('reflects manifest.ts changes on fetch/refresh', async () => {
const initial = await next
.fetch('/manifest.webmanifest')
......
......@@ -7,7 +7,6 @@ describe('turbopack-ignore-issue', () => {
const { next, skipped, isTurbopack } = nextTestSetup({
files: __dirname,
// turbopack.ignoreIssue is turbopack-only
skipDeployment: true,
nextConfig: {
turbopack: {
ignoreIssue: [
......@@ -125,7 +124,6 @@ describe('turbopack-ignore-issue', () => {
describe('without turbopack.ignoreIssue config', () => {
const { next, skipped, isTurbopack } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
......
......@@ -3,8 +3,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('turbopack-import-assertions-use', () => {
const { next, isTurbopack } = nextTestSetup({
files: __dirname,
// This test is Turbopack-only; turbopackUse is not supported in webpack
skipDeployment: true,
})
if (!isTurbopack) {
......
......@@ -7,7 +7,6 @@ import { nextTestSetup } from 'e2e-utils'
() => {
const { next, skipped } = nextTestSetup({
files: path.join(__dirname, 'fixtures', 'compilation-errors-app'),
skipDeployment: true,
})
if (skipped) {
......
......@@ -5,7 +5,6 @@ import { retry } from 'next-test-utils'
describe('get-logs MCP tool', () => {
const { next, skipped } = nextTestSetup({
files: path.join(__dirname, 'fixtures', 'log-file-app'),
skipDeployment: true,
})
if (skipped) {
......
......@@ -4,7 +4,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('get_routes MCP tool', () => {
const { next, skipped } = nextTestSetup({
files: path.join(__dirname, 'fixtures', 'dynamic-routes-app'),
skipDeployment: true,
})
if (skipped) {
......
......@@ -4,7 +4,6 @@ import { waitForRedbox, getRedboxSource } from 'next-test-utils'
describe('app dir - css', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
dependencies: {
sass: 'latest',
},
......
......@@ -4,7 +4,8 @@ import path from 'path'
import { Playwright } from 'next-webdriver'
import type { Page as PlaywrightPage } from 'playwright'
describe('app dir client cache with parallel routes', () => {
// TODO: This suite is flaky in production and deploy modes, skip until stabilized.
describe.skip('app dir client cache with parallel routes', () => {
const { next, isNextDev } = nextTestSetup({
files: path.join(__dirname, 'fixtures', 'parallel-routes'),
})
......
......@@ -709,4 +709,12 @@ describe('app-custom-routes', () => {
expect(cliOutput).not.toContain('Attempted import error')
})
})
describe('top-level await', () => {
it('handles route handlers that use top-level await', async () => {
const res = await next.fetch(basePath + '/top-level-await')
expect(res.status).toBe(200)
expect(await res.text()).toBe('hello from top-level await')
})
})
})
// This route uses a top-level await to simulate an async module (e.g. a route
// that fetches config or initializes a DB connection at module load time).
// require() returns a Promise for such modules, so the route module must not
// eagerly call _initFromUserland() before the Promise resolves.
const message = await Promise.resolve('hello from top-level await')
export async function GET() {
return new Response(message)
}
......@@ -17,14 +17,10 @@ const nextConfig = {
},
},
},
experimental: enableCaching
? {
turbopackFileSystemCacheForBuild: true,
}
: {
turbopackFileSystemCacheForDev: false,
turbopackFileSystemCacheForBuild: false,
},
experimental: {
turbopackFileSystemCacheForBuild: enableCaching,
turbopackFileSystemCacheForDev: enableCaching,
},
env: {
NEXT_PUBLIC_CONFIG_ENV: 'hello world',
},
......
export default function DynamicStyled({ color }) {
return (
<div>
<style jsx>{`
p {
color: ${color};
}
`}</style>
<p>dynamic styled</p>
</div>
)
}
export default function Footer({ color }) {
return (
<footer>
<style jsx>{`
footer {
color: ${color};
padding: 1rem;
}
`}</style>
<span>Footer</span>
</footer>
)
}
export default function Header({ bg, fg }) {
return (
<header>
<style jsx>{`
header {
background-color: ${bg};
color: ${fg};
padding: 1rem;
}
`}</style>
<span>Header</span>
</header>
)
}
import { nextTestSetup } from 'e2e-utils'
describe('styled-jsx dynamic styles SSR', () => {
const { next } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
// Dynamic styled-jsx (with interpolated expressions) produces numeric class
// names at runtime via the DJB2 hash in styled-jsx's computeId function.
// This pattern matches production deployments where all jsx class names
// are numeric (e.g. jsx-2267428885) rather than hex (jsx-f36313d9f07883b7).
it('should contain dynamic styled-jsx styles during SSR', async () => {
const html = await next.render('/')
// Dynamic styled-jsx produces numeric class names at runtime
const numericClasses = html.match(/\bjsx-\d+\b/g) || []
console.log('Numeric jsx classes:', [...new Set(numericClasses)])
expect(numericClasses.length).toBeGreaterThan(0)
// All dynamic styles should be present as inline <style> tags
expect(html).toMatch(/color:.*?green/) // main page
expect(html).toMatch(/color:.*?blue/) // DynamicStyled
expect(html).toMatch(/background-color:.*?navy/) // header
expect(html).toMatch(/color:.*?purple/) // footer
})
})
import DynamicStyled from '../components/DynamicStyled'
import Header from '../components/Header'
import Footer from '../components/Footer'
export default function Page({ mainColor }) {
return (
<div>
<style jsx>{`
div {
color: ${mainColor};
}
`}</style>
<Header bg="navy" fg="white" />
<main>
<DynamicStyled color="blue" />
</main>
<Footer color="purple" />
</div>
)
}
export function getServerSideProps() {
return {
props: {
mainColor: 'green',
},
}
}
......@@ -23,11 +23,9 @@ const runDev = async (config: any, shouldWaitForReady = true) => {
const port = await findPort()
const obj = { port, stdout: '', stderr: '' }
app = await launchApp(appDir, port, {
stdout: false,
onStdout(msg: string) {
obj.stdout += msg || ''
},
stderr: false,
onStderr(msg: string) {
obj.stderr += msg || ''
},
......
......@@ -5,7 +5,6 @@ import path from 'path'
describe('500-page - mixed-router-no-custom-pages-error', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) {
......
......@@ -5,7 +5,6 @@ import path from 'path'
describe('500-page - mixed-router-with-custom-pages-error', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) {
......
......@@ -10,7 +10,6 @@ import { retry } from 'next-test-utils'
() => {
const { next } = nextTestSetupActionTreeShaking({
files: __dirname,
skipDeployment: true,
})
it('should not tree-shake namespace exports the manifest', async () => {
......
......@@ -3,7 +3,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('bad-file-structure', () => {
const { next } = nextTestSetup({
files: __dirname,
skipDeployment: true,
skipStart: true,
})
......
......@@ -24,7 +24,6 @@ async function readFilesRecursive(
describe('browser-chunks', () => {
const { next } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
let sources: string[] = []
......
......@@ -3,7 +3,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('app-dir client-components-tree-shaking', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
......
......@@ -5,7 +5,6 @@ describe('empty-generate-static-params', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipStart: true,
skipDeployment: true,
})
if (skipped) return
......
......@@ -6,9 +6,6 @@ describe('empty-shell-route-cache', () => {
const { next } = nextTestSetup({
files: __dirname,
skipStart: true,
// This regression inspects on-disk .next artifacts, so it only applies to
// self-hosted build + start and is not portable to deployment mode.
skipDeployment: true,
})
beforeAll(async () => {
......
......@@ -4,7 +4,6 @@ import { nextTestSetup } from 'e2e-utils'
describe.skip('app-dir - metadata-streaming-config-customized', () => {
const { next } = nextTestSetup({
files: __dirname,
skipDeployment: true,
overrideFiles: {
'next.config.js': `
module.exports = {
......
......@@ -4,7 +4,6 @@ import { nextTestSetup } from 'e2e-utils'
() => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
......
......@@ -4,7 +4,6 @@ import { nextTestSetup } from 'e2e-utils'
() => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
......
......@@ -10,7 +10,6 @@ const strictRouteTypes =
const { next } = nextTestSetup({
files: __dirname,
skipStart: true,
skipDeployment: true,
})
it('should pass build with Promise params', async () => {
......
......@@ -12,7 +12,6 @@ describe('post-build', () => {
const { next, isTurbopack, skipped } = nextTestSetup({
files: __dirname,
skipStart: true,
skipDeployment: true,
env: {
NEXT_USE_POST_BUILD: '1',
},
......
......@@ -3,7 +3,6 @@ import { nextTestSetup } from 'e2e-utils'
describe('app-dir revalidate', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) {
......
......@@ -5,8 +5,6 @@ import type { ClientReferenceManifest } from 'next/dist/build/webpack/plugins/fl
describe('route-handler-manifest-size', () => {
const { next, isNextStart, skipped } = nextTestSetup({
files: __dirname,
// This test is specifically for webpack behavior
skipDeployment: true,
})
if (skipped) return
......
......@@ -3,7 +3,6 @@ import { retry } from 'next-test-utils'
describe('ssg-single-pass', () => {
const { next, skipped } = nextTestSetup({
skipDeployment: true,
files: __dirname,
})
......
......@@ -8,7 +8,6 @@ const strictRouteTypes =
describe('types-gen-nounuselocal', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment