Cloudflare

Announcing Pages support for monorepos, wrangler.toml, database integrations and more!

Apr 4, 2024Nevi Shah, Adam Murray, Igor Minar
Announcing Pages support for monorepos, wrangler.toml, database integrations and more!
SummaryAI, from the source post

This post introduces several key enhancements to Cloudflare Pages: 1. Monorepo support, allowing teams to manage multiple projects within a single repository with path-based include/exclude controls for builds, and compatibility with tools like Turborepo and NX. 2. Integration of `wrangler.toml` for Pages project configuration, enabling source control of settings, environment variable management, and bindings. A CLI command is provided to download existing dashboard configurations into `wrangler.toml`. 3. Direct database integrations with Neon, PlanetScale, Supabase, Turso, Upstash, and Xata, simplifying connection setup via environment variables and secrets. 4. Continued improvements to Next.js support, including an ESLint plugin (`eslint-plugin-next-on-pages`), `getRequestContext()` APIs for Cloudflare-specific resources, and an overhauled local development workflow.

More from the Website Content Optimization trail