From abc7ccc796511bc2fc19d33eac1ed7a2bcaf76be Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 16 Aug 2024 09:20:19 +0200 Subject: [PATCH] add TODO --- packages/next/src/server/dev/hot-reloader-turbopack.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/next/src/server/dev/hot-reloader-turbopack.ts b/packages/next/src/server/dev/hot-reloader-turbopack.ts index 6ba60a3c52269..c2747408d47ae 100644 --- a/packages/next/src/server/dev/hot-reloader-turbopack.ts +++ b/packages/next/src/server/dev/hot-reloader-turbopack.ts @@ -126,6 +126,13 @@ export async function createHotReloaderTurbopack( hotReloaderSpan.stop() const encryptionKey = await generateEncryptionKeyBase64(true) + + // TODO: Implement + let clientRouterFilters: any + if (nextConfig.experimental.clientRouterFilter) { + // TODO this need to be set correctly for persistent caching to work + } + const project = await bindings.turbo.createProject( { projectPath: dir, @@ -137,8 +144,7 @@ export async function createHotReloaderTurbopack( env: process.env as Record, defineEnv: createDefineEnv({ isTurbopack: true, - // TODO: Implement - clientRouterFilters: undefined, + clientRouterFilters, config: nextConfig, dev: true, distDir,