/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
bench/dev-validation/next.config.js
20 строк
642 B
Hendrik Liebau
Add a benchmark for dev Cache Components validation on a worker thread (#96152)
25 июл 2026, 08:21
Не верифицирован
25 июл 2026, 08:21
59cc642
Код
Авторство
О чём код?
/** * @type {import('next').NextConfig} */ const nextConfig = { // Cache Components enables the dev validation this benchmark stresses. cacheComponents: true, } // The benchmark runner A/Bs worker vs in-process validation on the same build // by setting this env var. We only set the experimental flag when explicitly // disabling the worker; leaving it unset uses the default (worker), so the two // configurations differ in this one flag alone. if (process.env.BENCH_DEV_VALIDATION_WORKER === 'false') { nextConfig.experimental = { ...nextConfig.experimental, devValidationWorker: false, } } module.exports = nextConfig