tpmjs/apps/web
Ajax Davis c42bfb684c fix(redirects): exclude API routes from www redirect
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>
2025-11-28 20:28:59 +10:00
..
src feat(api): add health check endpoint for diagnostics 2025-11-28 05:45:17 +10:00
eslint.config.mjs fix(lint): configure Biome to properly ignore build directories 2025-11-26 22:49:45 +10:00
next-env.d.ts fix(ui): make RadioGroup SSR-compatible while preserving runtime validation 2025-11-27 02:38:55 +10:00
next.config.ts fix(redirects): exclude API routes from www redirect 2025-11-28 20:28:59 +10:00
package.json feat(sync): implement Phase 3 Sync Workers with Vercel Cron integration 2025-11-28 02:57:54 +10:00
postcss.config.js feat: add complete monorepo structure and all packages 2025-11-25 21:59:40 +10:00
tailwind.config.ts fix(lint): configure Biome to properly ignore build directories 2025-11-26 22:49:45 +10:00
tsconfig.json feat(sync): implement Phase 3 Sync Workers with Vercel Cron integration 2025-11-28 02:57:54 +10:00
vercel.json fix(vercel): configure Turborepo monorepo build for apps/web 2025-11-28 05:58:10 +10:00