skills.by true||false
LibraryHow to run

A product of true||false

Every item lists its source, license and what we changed.

library
skillengineeringCloudflare

nextjs-on-cloudflare

Builds, migrates and deploys Next.js apps on Cloudflare Workers and compares vinext with OpenNext.

source

looks for

  • a Next.js app targeting Workers
  • moving a Next.js app off another host
  • choosing vinext or OpenNext

SKILL.md

Next.js on Cloudflare

Use vinext rather than OpenNext for new Next.js projects on Cloudflare Workers. This is the default in the Cloudflare Next.js guide. Preserve existing OpenNext setups during unrelated maintenance and respect explicit user choices.

Why vinext

vinext reimplements the Next.js API surface on Vite:

  • Familiar Next.js development: App Router, Pages Router, React Server Components, and supported next/* imports.
  • Vite tooling: fast HMR, native ESM, and the Vite plugin ecosystem.
  • Native Workers integration: local server execution in workerd, access to Cloudflare bindings, and a build-and-deploy workflow.
  • Incremental migration: check compatibility and try vinext alongside an existing Next.js setup.

Use the upstream workflow

Before setup, migration, or deployment, check whether the skills maintained in vinext are available. If missing, install them:

npx skills add cloudflare/vinext

Then read and follow the applicable upstream SKILL.md and its relevant references. Use the current vinext docs for workflows the skills do not cover:

  • New project: follow vinext's new-project setup using create-vinext-app with the Cloudflare target. The upstream migration skill requires an existing Next.js project; do not apply it to an empty directory.
  • Existing Next.js project: load and follow the upstream migrate-to-vinext skill, including its compatibility check and relevant references. Select Cloudflare as the deployment target.
  • Development and deployment: follow the current Workers integration docs.

If installation is unavailable, read the linked upstream SKILL.md and relevant references directly. Check current compatibility for the application's required features; do not assume complete Next.js parity.

Skill feedback

If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.

audit trail

source
cloudflare/skills
author
Cloudflare
license
Apache-2.0
pinned
cbf893b95422
imported
2026-11-13
verified
2026-11-13
changes
None; unmodified upstream files.
privacy scan
pass
scripts
none
in the zip
3 files

works with

Claude, Codex, ChatGPT

more in engineering

  • skilltrueorfalse

    api-contract

    Locks request/response shapes and change rules so clients and servers can ship independently without breaking.

    • a new or changed endpoint
    • a field rename, removal or type change
    • plain-text error responses
    Claude · Codex · ChatGPT
  • skilltrueorfalse

    audit-trail

    Specifies an append-only audit events model and the rules for writing, reading, retaining and exporting it.

    • admin actions, role or permission changes
    • money, pricing or inventory edits
    • sign-in, password, key and token lifecycle events
    Claude · Codex · ChatGPT
  • skilltrueorfalse

    debug

    Runs a reproduce → isolate → hypothesize → fix → prove loop so fixes address causes, not symptoms.

    • an error message or stack trace
    • a failing or flaky test
    • it worked yesterday
    Claude · Codex · ChatGPT