Skip to content

Commit

Permalink
fix next.config
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Jul 2, 2024
1 parent af136ea commit 214ef90
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
import { resolve } from 'path'
const __dirname = resolve()

/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['@common'],

// for open-next output
outputFileTracingRoot: path.join(__dirname, '../'),
// don't include dev deps in the deployed bundle
outputFileTracingExcludes: {
'*': [
'./**/.prisma/client/libquery_engine-darwin*', // prisma mac binary
'./**/@swc/core-linux-x64-gnu*',
'./**/@swc/core-linux-x64-musl*',
'./**/@esbuild*',
'./**/webpack*',
'./**/rollup*',
'./**/terser*',
'./**/sharp*',
],
experimental: {
// for open-next output
outputFileTracingRoot: resolve(__dirname, '../'),
// don't include dev deps in the deployed bundle
outputFileTracingExcludes: {
'*': [
'./**/.prisma/client/libquery_engine-darwin*', // prisma mac binary
'./**/@swc/core-linux-x64-gnu*',
'./**/@swc/core-linux-x64-musl*',
'./**/@esbuild*',
'./**/webpack*',
'./**/rollup*',
'./**/terser*',
'./**/sharp*',
],
},
},

images: {
Expand Down

0 comments on commit 214ef90

Please sign in to comment.