cloudflare/next-on-pages — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a command line tool for people who already have a Next.js app and want to build, develop, and deploy it on Cloudflare Pages.

It should take a Next.js project, create the right Pages ready output, support a local dev workflow that feels close to Cloudflare, and show clear errors when a Next.js feature is not compatible or needs an edge friendly setup. Please also include a small ESLint helper that can warn developers about common mistakes while they are working.

Since this tool is now deprecated, make that obvious in the README and CLI output, and point new users to the OpenNext Cloudflare adapter. But still make it useful for existing projects that depend on this flow, including migration notes and links to the newer guide.

Keep the setup simple, with good docs, examples, and tests for the main build and dev commands. Look up current Cloudflare and Next.js docs online if you need to.

Want more depth? Deep Reverse