Skip to content

Commit 4442ed9

Browse files
committed
exclude pdfs from tracing in next config
1 parent c8d944a commit 4442ed9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ const nextConfig: NextConfig = {
2020
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2121
...({
2222
outputFileTracingExcludes: {
23+
2324
// Exclude the banner images and three.js from all serverless function
2425
// bundles — they are served as static files and don't need to be
2526
// bundled into functions like opengraph-image routes
2627
"**": [
28+
'./**/*.pdf',
2729
"public/content-images/**",
2830
"node_modules/three/**",
2931
"node_modules/@react-three/**",

0 commit comments

Comments
 (0)