Introducing vercel.ts: Programmatic project configuration
Vercel launches vercel.ts, a TypeScript-based configuration file supporting type safety, dynamic routing, caching rules, and cron jobs as an alternative to static vercel.json.
Vercel now supports , a new TypeScript-based configuration file that brings type safety, dynamic logic, and better developer experience to project configuration.vercel.ts lets you express configuration as code by defining advanced routing, request transforms, caching rules, and cron jobs, going beyond what static JSON can express. In addition to full type safety, this also allows access to environment variables, shared logic, and conditional behavior.vercel.ts All projects can now use (or , , , ) for project configuration.
Properties are defined identically to and can be enhanced using the new package.vercel.ts.js.mjs.cjs.mtsvercel.json@vercel/config to explore , , or read the and the .Try the playgroundlearn how to migrate from an existing vercel.jsondocumentation@vercel/config packagevercel.ts Read more