Skip to content

Commit 5cc2a76

Browse files
fix(web): set explicit turbopack root for Render
1 parent 571df4e commit 5cc2a76

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/web/next.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1+
import path from "node:path";
12
import type { NextConfig } from "next";
23

4+
const repoRoot = path.resolve(__dirname, "../..");
5+
36
const nextConfig: NextConfig = {
47
// output: "standalone",
58
reactStrictMode: true,
69
poweredByHeader: false,
10+
// Render/Turbopack can otherwise infer apps/web/app as the project root,
11+
// which prevents resolving next/package.json from this monorepo workspace.
12+
outputFileTracingRoot: repoRoot,
13+
turbopack: {
14+
root: repoRoot,
15+
},
716
experimental: {
817
optimizePackageImports: ["lucide-react"],
918
},

0 commit comments

Comments
 (0)