
11/17/2021 · Nevi Shah, Glen Maddern, Cina Saffary
What this post added
This post announces the integration of Cloudflare Workers with Cloudflare Pages, enabling full-stack application deployment. Developers can now deploy serverless functions alongside static assets by adding a `./functions` directory to their project. This integration supports various bindings (KV, Durable Objects, R2, environment variables, secrets) and provides preview deployments for both frontend and backend code. Local development is facilitated by the wrangler CLI with Miniflare. The post also highlights seamless integration with SvelteKit and the ability to use server-side rendering within Pages. Existing Workers can be deployed to Pages by generating a `_worker.js` file.