Skip to content

Commit 71add61

Browse files
committed
use the new analyzer
1 parent e685fa8 commit 71add61

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

apps/mvp/next.config.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ const nextConfig: NextConfig = {
1616
},
1717
},
1818
productionBrowserSourceMaps: true,
19-
webpack: (config) => {
20-
// Resolve sanity package duplicates by forcing all imports to use the same version
21-
config.resolve.alias = {
22-
...config.resolve.alias,
23-
// Force all sanity imports to use a single resolved version
24-
'sanity$': require.resolve('sanity'),
25-
'sanity/*': path.resolve(require.resolve('sanity'), '..', '*'),
26-
}
27-
28-
return config
29-
},
3019
}
3120

32-
export default withBundleAnalyzer({
33-
enabled: process.env.ANALYZE === 'true',
34-
})(nextConfig)
21+
export default nextConfig

apps/mvp/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"#groqd": "./groqd-client.ts"
88
},
99
"scripts": {
10-
"build": "next build --profile --webpack && sanity manifest extract --path public/studio/static && pnpm copy-analyze",
11-
"copy-analyze": "cp -r .next/analyze public/ || true",
10+
"build": "next build --profile --experimental-analyze && sanity manifest extract --path public/studio/static",
1211
"dev": "next dev",
1312
"start": "next start",
1413
"type-check": "next typegen && tsc --noEmit",

0 commit comments

Comments
 (0)