Configure vercel.json for Python FastAPI backend and Next.JS frontend

Hi, I have one code repository with a Python FastAPI sitting in /api/index.py and my next JS files in the structure /apps/web where the package.json is also located. How do I need to configure the vercel.json which is located in the root. In the Vercel build web UI I left the root directory empty. If I put the following it does not find the next js file and returns an error

{
“$schema”: “https://openapi.vercel.sh/vercel.json”,
“cleanUrls”: true,
“functions”: {
“api/**/*.py”: {
“memory”: 1024
}
}
}

Hello,

I will recommend checking our Next.js FastAPI Starter template to understand how to structure your application.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.