diff --git a/next.config.ts b/next.config.ts index 631b848..ad4d0ef 100644 --- a/next.config.ts +++ b/next.config.ts @@ -5,6 +5,11 @@ import pkg from "./package.json" const nextConfig: NextConfig = { reactStrictMode: true, serverExternalPackages: ['sharp'], + // Pin Turbopack workspace root to the invocation directory so worktrees + // resolve their own node_modules instead of climbing into an outer lockfile. + turbopack: { + root: process.cwd(), + }, env: { NEXT_PUBLIC_APP_VERSION: pkg.version, NEXT_PUBLIC_BUILD_DATE: new Date().toISOString(),