tpmjs/apps/web/next.config.ts
Ajax Davis dff523fa99 fix(omega): move registry packages to transpilePackages for ESM support
- @tpmjs/registry-search and @tpmjs/registry-execute use ESM syntax
- Move from serverExternalPackages to transpilePackages so Next.js
  properly bundles and transpiles them
- Revert to static imports now that packages are bundled correctly
2026-01-25 05:52:52 +10:00

29 lines
553 B
TypeScript

import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
transpilePackages: [
'@tpmjs/ui',
'@tpmjs/utils',
'@tpmjs/db',
'@tpmjs/types',
'@tpmjs/env',
'@tpmjs/config',
'@tpmjs/registry-search',
'@tpmjs/registry-execute',
],
reactStrictMode: true,
serverExternalPackages: [
'@tpmjs/package-executor',
],
async redirects() {
return [
{
source: '/tools-ideas',
destination: '/tool-ideas',
permanent: true,
},
];
},
};
export default nextConfig;