- Inline tailwind config to resolve Turbopack import issues with @tpmjs/config - Add exports field to @tpmjs/config package.json for proper module resolution - Add @tpmjs/config to transpilePackages in Next.js config Note: page.tsx has a pre-existing Turbopack parsing error at line 604 that needs to be addressed separately (it existed before these changes).
25 lines
483 B
TypeScript
25 lines
483 B
TypeScript
import type { NextConfig } from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: [
|
|
'@tpmjs/ui',
|
|
'@tpmjs/utils',
|
|
'@tpmjs/db',
|
|
'@tpmjs/types',
|
|
'@tpmjs/env',
|
|
'@tpmjs/config',
|
|
],
|
|
reactStrictMode: true,
|
|
serverExternalPackages: ['@tpmjs/package-executor'],
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/tools-ideas',
|
|
destination: '/tool-ideas',
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|