Skip to content

Commit 79ed4ae

Browse files
andresdjassoclaude
andcommitted
chore(next): pin turbopack root to the monorepo, skip optimizeCss in dev
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f9b34f4 commit 79ed4ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/sim/next.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'node:path'
12
import type { NextConfig } from 'next'
23
import { env, isTruthy } from './lib/core/config/env'
34
import { isDev } from './lib/core/config/feature-flags'
@@ -92,6 +93,7 @@ const nextConfig: NextConfig = {
9293
],
9394
},
9495
turbopack: {
96+
root: path.join(__dirname, '../..'),
9597
resolveAlias: {
9698
// `dns/promises` has no browser shim. Server-only connector fetch logic
9799
// (which imports `input-validation.server`) is statically reachable from
@@ -103,7 +105,7 @@ const nextConfig: NextConfig = {
103105
},
104106
},
105107
experimental: {
106-
optimizeCss: true,
108+
optimizeCss: !isDev,
107109
preloadEntriesOnStart: false,
108110
optimizePackageImports: [
109111
'lodash',

0 commit comments

Comments
 (0)