Skip to content

Commit e921ae7

Browse files
committed
Include TRACING_ROOT since we're in a monorepo
1 parent 9088306 commit e921ae7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/techlabblog/next.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
import { fileURLToPath } from "url";
2+
import path from "path";
3+
14
import createMDX from "@next/mdx";
25

36
import { rehypePlugins, remarkPlugins } from "./mdx.config.mjs";
47

8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
11+
const TRACING_ROOT = process.env.TRACING_ROOT?.trim();
12+
const outputFileTracingRoot = TRACING_ROOT
13+
? path.join(__dirname, TRACING_ROOT)
14+
: undefined;
15+
516
/** @type {import('next').NextConfig} */
617
const nextConfig = {
718
output: "standalone",
19+
outputFileTracingRoot,
820
pageExtensions: ["mdx", "tsx"],
921
reactStrictMode: true,
1022
transpilePackages: ["@commons-ui/core", "@commons-ui/next"],

0 commit comments

Comments
 (0)