From 3f4888faa9ca8217ec967585a54fc907a169bb6c Mon Sep 17 00:00:00 2001 From: giancarlo Date: Thu, 2 May 2024 01:18:00 +0700 Subject: [PATCH] Add outputFileTracingIncludes to next.config.mjs This commit includes the outputFileTracingIncludes configuration in the next.config.mjs file. This is done to specify which files should be included in the output file tracing, in this case, all files in the /content directory. --- apps/web/next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index 763ea14b8..55119e681 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -37,6 +37,10 @@ const config = { turbo: { resolveExtensions: ['.ts', '.tsx', '.js', '.jsx'], }, + // needed for supporting dynamic imports for local content + outputFileTracingIncludes: { + "/*": ["./content/**/*"], + }, optimizePackageImports: [ 'recharts', 'lucide-react',