Vercel now lets projects be configured with a vercel.toml file, a settings file written in the TOML format. Vercel says every project can use it, and it supports the same configuration properties as vercel.json.
TOML is a plain-text format for settings. Compared with vercel.json, Vercel says the new file supports comments and has a flatter structure. Comments are notes inside the file that explain a setting without changing how it works.
A project can use only one configuration file. The options are vercel.toml, vercel.json, or vercel.ts.
Vercel's example configures Services, which are separate parts of one project. A frontend service points to a frontend folder, and a backend service points to a backend folder with a main:app entrypoint. Two rewrite rules then route requests. Paths starting with /api go to the backend, and all other paths go to the frontend. The example also sets a schema address, at the top of the file.
Source: Projects can now be configured with vercel.toml – Vercel.