diff --git a/apps/web-evals/next.config.ts b/apps/web-evals/next.config.ts index b5f54a87be8..8faaff9c152 100644 --- a/apps/web-evals/next.config.ts +++ b/apps/web-evals/next.config.ts @@ -1,7 +1,20 @@ +import path from "path" import type { NextConfig } from "next" const nextConfig: NextConfig = { - turbopack: {}, + turbopack: { + root: path.join(__dirname, "../.."), + }, + webpack: (config) => { + // Enable .js -> .ts/.tsx resolution for workspace packages using NodeNext + // module resolution (e.g. @roo-code/types, @roo-code/ipc, @roo-code/cloud) + config.resolve.extensionAlias = { + ".js": [".ts", ".tsx", ".js", ".jsx"], + ".mjs": [".mts", ".mjs"], + ".cjs": [".cts", ".cjs"], + } + return config + }, } export default nextConfig