This commit is contained in:
roomote-v0[bot] 2026-04-20 12:47:41 +00:00 committed by GitHub
commit 76672e0b1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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