Separate backend deployment complexity with CORS management
6/10 MediumVite enforces backend separation, requiring developers to manage two repositories, two CI/CD pipelines, and deal with CORS issues for authentication, complicating deployments and network latency concerns.
Sources
Collection History
Your back-end and front-end are *always* coupled. This is communication overhead. It adds risk. It adds complexity. It adds meetings into engineers' calendars.
Integration with external APIs and CORS issues: Developers often run into difficulties integrating external APIs, especially due to CORS restrictions.
Vite treats the backend as a separate concern. You run Express, Fastify, or serverless functions alongside your SPA, proxy calls in vite.config.js, and deploy separately. The separation is clean but forces you to manage two repositories, two pipelines, and CORS issues once authentication is involved.