Skip to content

Commit

Permalink
fix: Fix too large build output
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Aug 9, 2024
1 parent 20f3e45 commit a3cd976
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const nextConfig = {

experimental: {
serverComponentsExternalPackages: ['rehype-preset-minify'],
outputFileTracingExcludes: {
'/**/*': ['./.git/**/*', './apps/**/*'],
},
},

webpack: (config, _options) => {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"./apps/*"
],
"scripts": {
"dev": "yarn enforce-redirects && concurrently \"yarn sidecar\" \"node ./src/hotReloadWatcher.mjs\" \"next dev\"",
"dev:developer-docs": "yarn enforce-redirects && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn dev",
"build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn build",
"build": "yarn enforce-redirects && prisma generate && next build",
"vercel:build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 yarn build",
"start": "next start",
"dev": "yarn enforce-redirects && concurrently \"yarn sidecar\" \"node ./src/hotReloadWatcher.mjs\" \"NEXT_TELEMETRY_DISABLED=1 next dev\"",
"dev:developer-docs": "yarn enforce-redirects && NEXT_PUBLIC_DEVELOPER_DOCS=1 NEXT_TELEMETRY_DISABLED=1 yarn dev",
"build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 NEXT_TELEMETRY_DISABLED=1 yarn build",
"build": "yarn enforce-redirects && prisma generate && NEXT_TELEMETRY_DISABLED=1 next build",
"vercel:build:developer-docs": "yarn enforce-redirects && git submodule init && git submodule update && NEXT_PUBLIC_DEVELOPER_DOCS=1 NEXT_TELEMETRY_DISABLED=1 yarn build",
"start": "NEXT_TELEMETRY_DISABLED=1 next start",
"migrate:dev": "dotenv -e .env.development -- yarn prisma migrate reset",
"lint": "next lint",
"lint:ts": "tsc --skipLibCheck",
Expand Down Expand Up @@ -134,4 +134,4 @@
"node": "20.11.0",
"yarn": "1.22.21"
}
}
}

0 comments on commit a3cd976

Please sign in to comment.