mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
feat: Turbopack issue
This commit is contained in:
parent
28260fb535
commit
1cff006544
1 changed files with 24 additions and 0 deletions
|
|
@ -11,6 +11,30 @@ const nextConfig: NextConfig = {
|
|||
// Ensure workspace packages are handled correctly
|
||||
externalDir: true,
|
||||
},
|
||||
// Webpack config for production builds
|
||||
webpack: (config, { isServer }) => {
|
||||
// Ensure proper resolution of dependencies in monorepo
|
||||
config.resolve.modules = [
|
||||
...(config.resolve.modules || []),
|
||||
"node_modules",
|
||||
"../../node_modules",
|
||||
];
|
||||
|
||||
if (!isServer) {
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
fs: false,
|
||||
};
|
||||
}
|
||||
return config;
|
||||
},
|
||||
// Turbopack config for dev mode (Next.js 16 default)
|
||||
turbopack: {
|
||||
resolveAlias: {
|
||||
// Turbopack should handle monorepo resolution automatically
|
||||
// but we can add specific aliases if needed
|
||||
},
|
||||
},
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue