Skip to content

Commit 303d548

Browse files
committed
updating outputFileTracingExcludes for testing
1 parent c26ffdc commit 303d548

File tree

1 file changed

+78
-19
lines changed

1 file changed

+78
-19
lines changed

next.config.ts

Lines changed: 78 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,86 @@
1-
import {codecovNextJSWebpackPlugin} from '@codecov/nextjs-webpack-plugin';
2-
import {withSentryConfig} from '@sentry/nextjs';
1+
import { codecovNextJSWebpackPlugin } from '@codecov/nextjs-webpack-plugin';
2+
import { withSentryConfig } from '@sentry/nextjs';
33

4-
import {redirects} from './redirects.js';
4+
import { redirects } from './redirects.js';
55

66
const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
77
? {
8-
'/**/*': ['./.git/**/*', './apps/**/*', 'docs/**/*'],
9-
}
8+
'/**/*': [
9+
'./.git/**/*',
10+
'./apps/**/*',
11+
'docs/**/*',
12+
// Add image exclusions for dev docs too
13+
'public/mdx-images/**/*',
14+
'**/*.png',
15+
'**/*.jpg',
16+
'**/*.jpeg',
17+
'**/*.gif',
18+
'**/*.svg',
19+
'**/*.webp',
20+
'**/*.pdf'
21+
],
22+
}
1023
: {
11-
'/**/*': [
12-
'./.git/**/*',
13-
'./apps/**/*',
14-
'develop-docs/**/*',
15-
'node_modules/@esbuild/darwin-arm64',
16-
],
17-
'/platform-redirect': ['**/*.gif', 'public/mdx-images/**/*', '*.pdf'],
18-
'\\[\\[\\.\\.\\.path\\]\\]': [
19-
'docs/**/*',
20-
'node_modules/prettier/plugins',
21-
'node_modules/rollup/dist',
22-
],
23-
'sitemap.xml': ['docs/**/*', 'public/mdx-images/**/*', '*.gif', '*.pdf', '*.png'],
24-
};
24+
'/**/*': [
25+
'./.git/**/*',
26+
'./apps/**/*',
27+
'develop-docs/**/*',
28+
'node_modules/@esbuild/darwin-arm64',
29+
// CRITICAL: Add comprehensive image exclusions globally
30+
'public/mdx-images/**/*',
31+
'public/**/*.png',
32+
'public/**/*.jpg',
33+
'public/**/*.jpeg',
34+
'public/**/*.gif',
35+
'public/**/*.svg',
36+
'public/**/*.webp',
37+
'public/**/*.pdf',
38+
// Exclude large dependencies that shouldn't be in functions
39+
'node_modules/@google-cloud/**/*',
40+
'node_modules/@aws-sdk/**/*',
41+
'node_modules/sharp/**/*',
42+
'node_modules/mermaid/**/*',
43+
],
44+
'/platform-redirect': ['**/*.gif', 'public/mdx-images/**/*', '*.pdf'],
45+
'/[[...path]]': [
46+
'docs/**/*',
47+
'node_modules/prettier/plugins',
48+
'node_modules/rollup/dist',
49+
// CRITICAL: Add image exclusions for main docs route
50+
'public/mdx-images/**/*',
51+
'**/*.gif',
52+
'**/*.png',
53+
'**/*.jpg',
54+
'**/*.jpeg',
55+
'**/*.pdf',
56+
'**/*.svg',
57+
'**/*.webp',
58+
// Exclude heavy deps from main route
59+
'node_modules/@google-cloud/**/*',
60+
'node_modules/@aws-sdk/**/*',
61+
'node_modules/sharp/**/*',
62+
'node_modules/mermaid/**/*',
63+
],
64+
// Fallback pattern in case Next.js uses different internal naming
65+
'[[...path]]': [
66+
'docs/**/*',
67+
'public/mdx-images/**/*',
68+
'**/*.gif',
69+
'**/*.png',
70+
'**/*.jpg',
71+
'**/*.jpeg',
72+
'**/*.pdf',
73+
'**/*.svg',
74+
'**/*.webp',
75+
'node_modules/prettier/plugins',
76+
'node_modules/rollup/dist',
77+
'node_modules/@google-cloud/**/*',
78+
'node_modules/@aws-sdk/**/*',
79+
'node_modules/sharp/**/*',
80+
'node_modules/mermaid/**/*',
81+
],
82+
'sitemap.xml': ['docs/**/*', 'public/mdx-images/**/*', '*.gif', '*.pdf', '*.png', '**/*.jpg', '**/*.jpeg'],
83+
};
2584

2685
if (
2786
process.env.NODE_ENV !== 'development' &&

0 commit comments

Comments
 (0)