mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
34 lines
649 B
TypeScript
34 lines
649 B
TypeScript
|
|
import type { NextConfig } from "next";
|
||
|
|
|
||
|
|
const nextConfig: NextConfig = {
|
||
|
|
transpilePackages: [
|
||
|
|
"@katanemo/ui",
|
||
|
|
"@katanemo/shared-styles",
|
||
|
|
"@katanemo/tailwind-config",
|
||
|
|
"@katanemo/tsconfig",
|
||
|
|
],
|
||
|
|
experimental: {
|
||
|
|
externalDir: true,
|
||
|
|
},
|
||
|
|
webpack: (config, { isServer }) => {
|
||
|
|
config.resolve.modules = [
|
||
|
|
...(config.resolve.modules || []),
|
||
|
|
"node_modules",
|
||
|
|
"../../node_modules",
|
||
|
|
];
|
||
|
|
|
||
|
|
if (!isServer) {
|
||
|
|
config.resolve.fallback = {
|
||
|
|
...config.resolve.fallback,
|
||
|
|
fs: false,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
return config;
|
||
|
|
},
|
||
|
|
turbopack: {
|
||
|
|
resolveAlias: {},
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default nextConfig;
|