New Project
A monorepo with a Vite frontend and a public FastAPI backend.

This example shows a monorepo using Vercel Services with a Vite frontend and a public FastAPI backend.
https://vite-fastapi-services.vercel.app/
The project is structured as a monorepo:
vite-fastapi/├── backend/├── frontend/└── vercel.json
Services are configured in vercel.json:
{"services": {"frontend": { "root": "frontend/", "framework": "nextjs" },"backend": { "root": "backend/", "entrypoint": "main:app" }},"rewrites": [{"source": "/svc/api/:path*","destination": { "type": "service", "service": "backend" }},{"source": "/(.*)","destination": { "type": "service", "service": "frontend" }}]}
Vercel will route requests to the backend service for URL with paths starting with /svc/api/ and to frontend for all other URLs.
vercel dev
Open http://localhost:3000 and try:
/svc/api/status (FastAPI route)