- @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
29 lines
553 B
TypeScript
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;
|