The redirect was being applied to ALL routes including API routes, causing them to return "Redirecting..." instead of executing. Use negative lookahead regex `/((?!api).*)` to exclude /api/* paths from the www → non-www redirect. This ensures: - API routes execute normally without redirection - Page routes still redirect from www.tpmjs.com to tpmjs.com - Follows Option 2 from the investigation plan 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| eslint.config.mjs | ||
| next-env.d.ts | ||
| next.config.ts | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| vercel.json | ||