Template name
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.jsonServices are configured in vercel.json:
{ "services": { "frontend": { "root": "frontend/", "framework": "nextjs" }, "backend": { "root": "backend/", "entrypoint": "main:app" } }, "rewrites": [ { "source": "/svc/api/:path*", "destination": { "service": "backend" } }, { "source": "/(.*)", "destination": { "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 devOpen http://localhost:3000 and try:
/svc/api/status (FastAPI route)