Skip to content

Commit

Permalink
chore(nextjs): enable outputFileTracing
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Mar 30, 2023
1 parent 60144d1 commit 2840faf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/nextjs-app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ const nextConfig = {
// @link https://nextjs.org/docs/advanced-features/output-file-tracing#caveats
outputFileTracingRoot: workspaceRoot,

// Useful in cunjunction out to `outputFileTracing: true` to keep lambdas sizes low when
// vercel/nft isn't able to drop unneeded deps for you.
//
// For example this allows to remove some binaries when deploying on vercel for example.
// (ie esbuild-musl, swc-musl...). This also also help to keep docker images smaller
// Useful in conjunction with to `output: 'standalone'` and `outputFileTracing: true`
// to keep lambdas sizes / docker images low when vercel/nft isn't able to
// drop unneeded deps for you. ie: esbuil-musl, swc-musl... when not actually needed
//
// Note that yarn 3+/4 is less impacted thanks to supportedArchitectures.
// See https://yarnpkg.com/configuration/yarnrc#supportedArchitectures and
Expand Down

0 comments on commit 2840faf

Please sign in to comment.