diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 4672ead..805bbbe 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -6,14 +6,14 @@ const nextConfig: NextConfig = { async redirects() { return [ { - source: '/:path*', + source: '/((?!api).*)', has: [ { type: 'host', value: 'www.tpmjs.com', }, ], - destination: 'https://tpmjs.com/:path*', + destination: 'https://tpmjs.com/$1', permanent: true, }, ];