We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9088306 commit e921ae7Copy full SHA for e921ae7
apps/techlabblog/next.config.mjs
@@ -1,10 +1,22 @@
1
+import { fileURLToPath } from "url";
2
+import path from "path";
3
+
4
import createMDX from "@next/mdx";
5
6
import { rehypePlugins, remarkPlugins } from "./mdx.config.mjs";
7
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
16
/** @type {import('next').NextConfig} */
17
const nextConfig = {
18
output: "standalone",
19
+ outputFileTracingRoot,
20
pageExtensions: ["mdx", "tsx"],
21
reactStrictMode: true,
22
transpilePackages: ["@commons-ui/core", "@commons-ui/next"],
0 commit comments