Skip to content

secondsky/claude-skills / plugins/cloudflare-nextjs/skills/cloudflare-nextjs

cloudflare-nextjs

Verified

Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare). Use for SSR/ISR/SSG/App or Pages Router, getCloudflareContext, bindings (D1/R2/KV/AI/Hyperdrive), caching tiers, skew protection, multi-worker, custom worker, env vars, or worker size/runtime/keep_names/FinalizationRegistry/connection-scoping errors.

references/known-issues.md

View on GitHub
# Known Issues & Migration

## Build/Runtime warnings for caching Durable Objects

Caching Durable Objects (`DOQueueHandler`, `DOShardedTagCache`) are **not used during the build**, which produces build-time and runtime warnings. These are safe to ignore (no production impact).

**Build-time warning:**
```
▲ [WARNING] You have defined bindings to the following internal Durable Objects:
- {"name":"NEXT_CACHE_DO_QUEUE","class_name":"DOQueueHandler"}
These will not work in local development, but they should work in production.
```

**Runtime warning:**
```
workerd/server/server.c++:1951: warning: A DurableObjectNamespace in the config referenced the class "DOQueueHandler"...
```

**To test DOs locally:** define your DO in a separate Worker, with a separate configuration file. See [Wrangler supported bindings](https://developers.cloudflare.com/workers/wrangler/api#supported-bindings).

## Migration: 0.6 → 1.0.0-beta

The codebase was refactored with breaking changes.

### 1. Class/binding renames

`DurableObjectQueueHandler` → **`DOQueueHandler`**. Update durable object bindings in `wrangler.jsonc` accordingly.

### 2. Environment variable rename

`NEXT_CACHE_DO_QUEUE_MAX_NUM_REVALIDATIONS` → **`NEXT_CACHE_DO_QUEUE_MAX_RETRIES`**.

### 3. `D1TagCache` removed

Replaced by **`D1NextModeTagCache`** (`d1NextTagCache` import) — more efficient, also D1-based.

### 4. `shardReplication` consolidated

`enableShardReplication` and `shardReplicationOptions` params to `ShardedDOTagCache` were folded into a single `shardReplication` object. You **must** specify it as an object to enable the feature.

**Before:**
```js
shardedDOTagCache({
  baseShardSize: 4,
  enableShardReplication: true,
  shardReplicationOptions: {
    numberOfSoftReplicas: 4,
    numberOfHardReplicas: 2,
  },
});
```

**After:**
```js
shardedDOTagCache({
  baseShardSize: 4,
  shardReplication: {
    numberOfSoftReplicas: 4,
    numberOfHardReplicas: 2,
  },
});
```

## Sources

- Known issues — https://opennext.js.org/cloudflare/known-issues
- Migration 0.6 → 1.0.0-beta — https://opennext.js.org/cloudflare/migrate-from-0.6-to-1.0.0-beta
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall