@@ -3,6 +3,34 @@ const {redirects} = require('./redirects.js');
3
3
const { codecovWebpackPlugin} = require ( '@codecov/webpack-plugin' ) ;
4
4
const { withSentryConfig} = require ( '@sentry/nextjs' ) ;
5
5
6
+ const outputFileTracingExcludes = process . env . NEXT_PUBLIC_DEVELOPER_DOCS
7
+ ? { }
8
+ : {
9
+ '/**/*' : [
10
+ './.git/**/*' ,
11
+ './apps/**/*' ,
12
+ 'develop-docs/**/*' ,
13
+ 'node_modules/@esbuild/darwin-arm64' ,
14
+ ] ,
15
+ '/platform-redirect' : [
16
+ 'docs/organization/integrations/**/*' ,
17
+ 'docs/product/**/*' ,
18
+ 'docs/concepts/**/*' ,
19
+ 'docs/api/**/*' ,
20
+ 'docs/pricing/**/*' ,
21
+ 'docs/account/**/*' ,
22
+ '**/*.gif' ,
23
+ 'public/mdx-images/**/*' ,
24
+ '*.pdf' ,
25
+ ] ,
26
+ '\\[\\[\\.\\.\\.path\\]\\]' : [
27
+ 'docs/**/*' ,
28
+ 'node_modules/prettier/plugins' ,
29
+ 'node_modules/rollup/dist' ,
30
+ ] ,
31
+ 'sitemap.xml' : [ 'docs/**/*' , 'public/mdx-images/**/*' , '*.gif' , '*.pdf' , '*.png' ] ,
32
+ } ;
33
+
6
34
/** @type {import('next').NextConfig } */
7
35
const nextConfig = {
8
36
pageExtensions : [ 'js' , 'jsx' , 'mdx' , 'ts' , 'tsx' ] ,
@@ -11,9 +39,7 @@ const nextConfig = {
11
39
12
40
experimental : {
13
41
serverComponentsExternalPackages : [ 'rehype-preset-minify' ] ,
14
- outputFileTracingExcludes : {
15
- '/**/*' : [ './.git/**/*' , './apps/**/*' ] ,
16
- } ,
42
+ outputFileTracingExcludes,
17
43
} ,
18
44
19
45
webpack : ( config , _options ) => {
0 commit comments