Scalable Next.js Commerce Upgrade
We are moving a production e-commerce site from a brittle monolith to a fully type-safe stack based on Next.js 14, NestJS, PostgreSQL, Auth.js, and Stripe.
The immediate priority is a thorough refactor of the existing legacy codebase to reduce high server response times affecting checkout and catalogue pages.
After the main bottlenecks are resolved, the roadmap includes clean REST/GraphQL APIs and a hardened Stripe integration, built with TDD and modern best practices.
The project is already in a GitHub repo with CI configured for Jest and ESLint. Every merge must keep tests passing and Lighthouse scores healthy.
Tech stack:
- Next.js 14 frontend
- NestJS services layer
- PostgreSQL 15
- Auth.js sessions
- Stripe payments
- Jest, ESLint, CI
Priority order:
1. Refactor legacy code
2. Build clean APIs
3. Finalise secure payments
Ideal freelancer:
Someone who has shipped similar e-commerce or SaaS projects, preferably using Next.js and NestJS. Experience with performance optimisation, API design, Stripe webhooks, testing, and production-grade refactoring is important.
Please include links to relevant demos, repositories, pull requests, benchmarks, or case studies if available.