fix(www): next.config issue

This commit is contained in:
Musa 2025-11-23 13:37:15 -08:00
parent 8375e913b4
commit be1617b557
6 changed files with 28 additions and 2 deletions

3
.gitignore vendored
View file

@ -151,4 +151,5 @@ packages/*/node_modules/
apps/*/.next/
apps/*/out/
apps/*/dist/
./node_modules
./node_modules
.vercel

1
apps/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.vercel

View file

@ -7,6 +7,10 @@ const nextConfig: NextConfig = {
"@katanemo/tailwind-config",
"@katanemo/tsconfig",
],
experimental: {
// Ensure workspace packages are handled correctly
externalDir: true,
},
};
export default nextConfig;

View file

@ -7,6 +7,10 @@ const nextConfig: NextConfig = {
"@katanemo/tailwind-config",
"@katanemo/tsconfig",
],
experimental: {
// Ensure workspace packages are handled correctly
externalDir: true,
},
};
export default nextConfig;

View file

@ -8,6 +8,18 @@
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
},
"./lib/utils": {
"types": "./src/lib/utils.ts",
"default": "./src/lib/utils.ts"
},
"./components/*": {
"types": "./src/components/*.tsx",
"default": "./src/components/*.tsx"
},
"./components/ui/*": {
"types": "./src/components/ui/*.tsx",
"default": "./src/components/ui/*.tsx"
}
},
"scripts": {

View file

@ -3,7 +3,11 @@
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"jsx": "react-jsx"
"jsx": "react-jsx",
"baseUrl": "./src",
"paths": {
"@/*": ["./*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]