cloudflare · Cloudflare Workers Docs
Workers Next.js
Guides for deploying both new and existing Next.js applications to Cloudflare Workers using the OpenNext adapter and Workers Assets, including CLI scaffolding and manual configuration.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Next.js
Guides for deploying both new and existing Next.js applications to Cloudflare Workers using the OpenNext adapter and Workers Assets, including CLI scaffolding and manual configuration.
When To Use
Use when you need to scaffold a new Next.js project or migrate an existing Next.js application to run on Cloudflare Workers.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-framework-guides-web-apps-next-js-workflow-guide.md | A guide explaining how to deploy Next.js projects on Cloudflare Workers using the OpenNext adapter. | Questions about a guide explaining how to deploy Next.js projects on Cloudflare Workers using the OpenNext adapter. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-inst.text | The npm command used to initialize a new Next.js application using the Cloudflare create command. | Exact payloads, commands, or snippets shown in The npm command used to initialize a new Next.js application using the Cloudflare create command. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-crea.text | The shell command used to scaffold a new Next.js application using the Cloudflare Workers framework creator. | Exact payloads, commands, or snippets shown in The shell command used to scaffold a new Next.js application using the Cloudflare Workers framework creator. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-proj.text | The pnpm command used to scaffold a new Next.js application using the Cloudflare Workers framework. | Exact payloads, commands, or snippets shown in The pnpm command used to scaffold a new Next.js application using the Cloudflare Workers framework. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-dev-.text | The npm run dev command used to start a local development server for a Next.js application running on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npm run dev command used to start a local development server for a Next.js application running on Cloudflare Work... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-dev--2.text | The terminal command used to run the Next.js development server within a Cloudflare Workers environment. | Exact payloads, commands, or snippets shown in The terminal command used to run the Next.js development server within a Cloudflare Workers environment. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-dev--3.text | The terminal command used to run the Next.js development server within a Cloudflare Workers environment. | Exact payloads, commands, or snippets shown in The terminal command used to run the Next.js development server within a Cloudflare Workers environment. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-prev.text | The npm run preview command used to run a local development server for a Next.js application on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npm run preview command used to run a local development server for a Next.js application on Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-prev-2.text | The shell command used to run the preview environment for a Next.js application on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The shell command used to run the preview environment for a Next.js application on Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-prev-3.text | The terminal command used to run a local preview of a Next.js application on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The terminal command used to run a local preview of a Next.js application on Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-depl.text | The npm command used to deploy a Next.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npm command used to deploy a Next.js application to Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-depl-2.text | The terminal command used to deploy a Next.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in The terminal command used to deploy a Next.js application to Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-depl-3.text | The pnpm deployment command used to deploy a Next.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in The pnpm deployment command used to deploy a Next.js application to Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-depl-4.text | The npx wrangler deploy command used to deploy a Next.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npx wrangler deploy command used to deploy a Next.js application to Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-depl-5.text | The wrangler deploy command used to deploy a Next.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in The wrangler deploy command used to deploy a Next.js application to Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-depl-6.text | The pnpm wrangler deploy command used to deploy a Next.js application to Cloudflare Workers. | Exact payloads, commands, or snippets shown in The pnpm wrangler deploy command used to deploy a Next.js application to Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-inst-2.text | The npm installation command for the @opennextjs/cloudflare package used to deploy Next.js applications on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npm installation command for the @opennextjs/cloudflare package used to deploy Next.js applications on Cloudflare... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-open.text | The yarn command required to add the OpenNext.js adapter for Cloudflare Workers. | Exact payloads, commands, or snippets shown in The yarn command required to add the OpenNext.js adapter for Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-open-2.text | The pnpm command required to add the OpenNext.js adapter for Cloudflare Workers. | Exact payloads, commands, or snippets shown in The pnpm command required to add the OpenNext.js adapter for Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-open-3.text | The bun command used to install the @opennextjs/cloudflare package for deploying Next.js applications on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The bun command used to install the @opennextjs/cloudflare package for deploying Next.js applications on Cloudflare W... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-inst-3.text | The npm command required to install the latest version of wrangler for a Next.js project on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npm command required to install the latest version of wrangler for a Next.js project on Cloudflare Workers. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-inst-4.text | The shell command to add the latest version of wrangler as a development dependency for a Next.js project on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The shell command to add the latest version of wrangler as a development dependency for a Next.js project on Cloudfla... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-inst-5.text | The pnpm command required to add the latest version of wrangler as a development dependency for a Next.js project on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The pnpm command required to add the latest version of wrangler as a development dependency for a Next.js project on... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-inst-6.text | The bun command used to add the latest version of wrangler as a development dependency for a Next.js project on Cloudflare Workers. | Exact payloads, commands, or snippets shown in The bun command used to add the latest version of wrangler as a development dependency for a Next.js project on Cloud... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-wran.text | A wrangler.toml configuration file for deploying a Next.js application to Cloudflare Workers using OpenNext. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file for deploying a Next.js application to Cloudflare Workers using OpenNext. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-wran-2.text | A wrangler.toml configuration file for deploying a Next.js application to Cloudflare Workers using OpenNext. | Exact payloads, commands, or snippets shown in A wrangler.toml configuration file for deploying a Next.js application to Cloudflare Workers using OpenNext. |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-open-4.text | A configuration file using defineCloudflareConfig from @opennextjs/cloudflare for deploying Next.js applications to Cloudflare Workers. | Exact payloads, commands, or snippets shown in A configuration file using defineCloudflareConfig from @opennextjs/cloudflare for deploying Next.js applications to C... |
examples/workers-framework-guides-web-apps-next-js-cloudflare-workers-nextjs-pack.text | The package.json scripts section for building, previewing, deploying, and generating types for a Next.js application on Cloudflare Workers using OpenNext. | Exact payloads, commands, or snippets shown in The package.json scripts section for building, previewing, deploying, and generating types for a Next.js application... |
What This Skill Covers
- Start from CLI - scaffold a Next.js project on Workers.
- Main sections:
Tags,What is Next.js?,Next.js supported features,Deploy a new Next.js project on Workers,Deploy an existing Next.js project on Workers.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/framework-guides/web-apps/nextjs
