fix: remove redirects to resolve redirect loop

This commit is contained in:
Ajax Davis 2025-11-28 20:36:47 +10:00
parent c42bfb684c
commit b93cd42167

View file

@ -3,21 +3,6 @@ import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
transpilePackages: ['@tpmjs/ui', '@tpmjs/utils', '@tpmjs/db', '@tpmjs/types', '@tpmjs/env'],
reactStrictMode: true,
async redirects() {
return [
{
source: '/((?!api).*)',
has: [
{
type: 'host',
value: 'www.tpmjs.com',
},
],
destination: 'https://tpmjs.com/$1',
permanent: true,
},
];
},
};
export default nextConfig;