[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79A3YHBTKRR1GAR0TY121SW":3,"skill-same:01M79A3YHBTKRR1GAR0TY121SW":134},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":14,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":65,"install":66,"resources":79},"01M79A3YHBTKRR1GAR0TY121SW","cloudflare-nextjs",null,"Deploy Next.js to Cloudflare Workers via OpenNext adapter. Use for SSR, ISR, App\u002FPages Router, or encountering worker size limits, runtime compatibility, connection scoping errors.","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"MIT","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudflare-nextjs\ndescription: \"Deploy Next.js to Cloudflare Workers via OpenNext adapter. Use for SSR, ISR, App\u002FPages Router, or encountering worker size limits, runtime compatibility, connection scoping errors.\"\nlicense: MIT\nmetadata:\n  version: 1.0.0\n  last_verified: 2025-11-21\n  package_versions:\n    \"@opennextjs\u002Fcloudflare\": \"^1.13.1\"\n    \"next\": \"^14.2.0 || ^15.0.0 || ^16.0.0\"\n    \"wrangler\": \"^4.50.0\"\n  compatibility_requirements:\n    compatibility_date: \"2025-05-05\"\n    compatibility_flags: [\"nodejs_compat\"]\n  token_savings: \"~59%\"\n  errors_prevented: 10\n  official_docs: \"https:\u002F\u002Fopennext.js.org\u002Fcloudflare\"\n  cloudflare_guide: \"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fframework-guides\u002Fweb-apps\u002Fnextjs\u002F\"\n  keywords:\n    - Cloudflare Next.js\n    - OpenNext Cloudflare\n    - \"@opennextjs\u002Fcloudflare\"\n    - Next.js Workers\n    - Next.js App Router Cloudflare\n    - Next.js Pages Router Cloudflare\n    - Next.js SSR Cloudflare\n    - Next.js ISR\n    - server components cloudflare\n    - server actions cloudflare\n    - Next.js middleware workers\n    - nextjs d1\n    - nextjs r2\n    - nextjs kv\n    - Next.js deployment\n    - opennextjs-cloudflare cli\n    - nodejs_compat\n    - worker size limit\n    - next.js runtime compatibility\n    - database connection scoping\n    - Next.js migration cloudflare\n---\n# Cloudflare Next.js Deployment Skill\n\nDeploy Next.js applications to Cloudflare Workers using the OpenNext Cloudflare adapter for production-ready serverless Next.js hosting.\n\n## When to Load References\n\nLoad additional reference files based on your specific task:\n\n- **`references\u002Ferror-catalog-extended.md`** - Load when encountering ANY error during setup, build, or deployment. Contains complete catalog of 11+ documented issues with root causes, solutions, and official sources.\n\n- **`references\u002Fservice-integration-patterns.md`** - Load when integrating Cloudflare services (D1, R2, KV, Workers AI) with Next.js. Contains complete patterns for database queries, file uploads, caching, and AI inference.\n\n- **`references\u002Ftroubleshooting.md`** - Load for general troubleshooting and debugging guidance beyond the error catalog.\n\n- **`references\u002Ffeature-support.md`** - Load when checking if a specific Next.js feature is supported on Cloudflare Workers (e.g., \"Can I use Server Actions?\", \"Does ISR work?\").\n\n- **`references\u002Fdatabase-client-example.ts`** - Load when integrating external database clients (Drizzle, Prisma, PostgreSQL, MySQL) with proper request-scoping patterns required by Workers.\n\n- **`references\u002Fopen-next.config.ts`** - Load when configuring caching behavior, image optimization, or custom OpenNext settings.\n\n- **`references\u002Fpackage.json`** - Load when setting up a new project or migrating an existing Next.js application to Cloudflare Workers.\n\n- **`references\u002Fwrangler.jsonc`** - Load when configuring Worker settings, compatibility flags, environment bindings (D1, R2, KV, AI), or deployment options.\n\n## Use This Skill When\n\n- Deploying Next.js applications (App Router or Pages Router) to Cloudflare Workers\n- Need server-side rendering (SSR), static site generation (SSG), or incremental static regeneration (ISR) on Cloudflare\n- Migrating existing Next.js apps from Vercel, AWS, or other platforms to Cloudflare\n- Building full-stack Next.js applications with Cloudflare services (D1, R2, KV, Workers AI)\n- Need React Server Components, Server Actions, or Next.js middleware on Workers\n- Want global edge deployment with Cloudflare's network\n\n## Key Differences from Standard Next.js\n\n**OpenNext Adapter** transforms Next.js builds for Workers. **Critical requirements**:\n- Node.js runtime (NOT Edge) via `nodejs_compat` flag\n- Request-scoped database clients (global clients fail)\n- Worker size limits: 3 MiB (free) \u002F 10 MiB (paid)\n- Dual testing: `next dev` for speed, `preview` for production-like validation\n\n## Setup Patterns\n\n### New Project Setup\n\nUse Cloudflare's `create-cloudflare` (C3) CLI to scaffold a new Next.js project pre-configured for Workers:\n\n```bash\nnpm create cloudflare@latest -- my-next-app --framework=next\n```\n\n**What this does**:\n1. Runs Next.js official setup tool (`create-next-app`)\n2. Installs `@opennextjs\u002Fcloudflare` adapter\n3. Creates `wrangler.jsonc` with correct configuration\n4. Creates `open-next.config.ts` for caching configuration\n5. Adds deployment scripts to `package.json`\n6. Optionally deploys immediately to Cloudflare\n\n**Development workflow**:\n```bash\nnpm run dev      # Next.js dev server (fast reloads)\nnpm run preview  # Test in workerd runtime (production-like)\nnpm run deploy   # Build and deploy to Cloudflare\n```\n\n### Existing Project Migration\n\nTo add the OpenNext adapter to an existing Next.js application:\n\n#### 1. Install the adapter\n\n```bash\nbun add -d @opennextjs\u002Fcloudflare\n```\n\n##### Secure Installation\n\nAdapter packages handle production traffic — pin exact versions and audit before upgrading. Follow supply chain security best practices:\n\n- **Block post-install scripts** — `npm config set ignore-scripts true` (or Bun: disabled by default)\n- **Cooldown period** — Wait 7 days for new package versions to be vetted by the community\n- **Audit before installing** — Run `socket package score npm \u003Cpkg>` or use `socket npm install \u003Cpkg>` to check packages\n\nLoad the `dependency-upgrade` skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.\n\n#### 2. Create wrangler.jsonc\n\n```jsonc\n{\n  \"name\": \"my-next-app\",\n  \"compatibility_date\": \"2025-05-05\",\n  \"compatibility_flags\": [\"nodejs_compat\"]\n}\n```\n\n**Critical configuration**:\n- `compatibility_date`: **Minimum `2025-05-05`** (for FinalizationRegistry support)\n- `compatibility_flags`: **Must include `nodejs_compat`** (for Node.js runtime)\n\n#### 3. Create open-next.config.ts\n\n```typescript\nimport { defineCloudflareConfig } from \"@opennextjs\u002Fcloudflare\";\n\nexport default defineCloudflareConfig({\n  \u002F\u002F Caching configuration (optional)\n  \u002F\u002F See: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Fcaching\n});\n```\n\n#### 4. Update package.json scripts\n\n```json\n{\n  \"scripts\": {\n    \"dev\": \"next dev\",\n    \"build\": \"next build\",\n    \"preview\": \"opennextjs-cloudflare build && opennextjs-cloudflare preview\",\n    \"deploy\": \"opennextjs-cloudflare build && opennextjs-cloudflare deploy\",\n    \"cf-typegen\": \"wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts\"\n  }\n}\n```\n\n**Script purposes**:\n- `dev`: Next.js development server (fast iteration)\n- `preview`: Build + run in workerd runtime (test before deploy)\n- `deploy`: Build + deploy to Cloudflare\n- `cf-typegen`: Generate TypeScript types for Cloudflare bindings\n\n#### 5. Ensure Node.js runtime (not Edge)\n\nRemove Edge runtime exports from your app:\n\n```typescript\n\u002F\u002F ❌ REMOVE THIS (Edge runtime not supported)\nexport const runtime = \"edge\";\n\n\u002F\u002F ✅ Use Node.js runtime (default)\n\u002F\u002F No export needed - Node.js is default\n```\n\n## Development Workflow\n\n**Dual Testing Required**:\n- `npm run dev` - Fast iteration (Next.js dev server)\n- `npm run preview` - Production-like testing (workerd runtime, **REQUIRED before deploy**)\n- `npm run deploy` - Build and deploy\n\n**Critical**: Always test `preview` before deploying to catch Workers-specific runtime issues\n\n## Critical Configuration\n\n**wrangler.jsonc** minimum requirements:\n```jsonc\n{\n  \"compatibility_date\": \"2025-05-05\",  \u002F\u002F Minimum for FinalizationRegistry\n  \"compatibility_flags\": [\"nodejs_compat\"]  \u002F\u002F Required for Node.js runtime\n}\n```\n\n**Cloudflare Bindings**: Add D1, R2, KV, or AI bindings in `wrangler.jsonc`, access via `process.env` (see \"Cloudflare Services Integration\" section for complete patterns)\n\n**Package Exports** (if needed): Create `.env` with `WRANGLER_BUILD_PLATFORM=\"node\"` to prioritize Node.js exports\n\n## Top 5 Critical Errors\n\nThese are the most common deployment-blocking errors. **For the complete catalog of 11+ errors, load `references\u002Ferror-catalog-extended.md`**.\n\n### 1. Worker Size Limit Exceeded\n\n**Error**: `\"Your Worker exceeded the size limit of 3 MiB\"` (Free) or `\"10 MiB\"` (Paid)\n\n**Quick Fix**: Upgrade plan, analyze bundle with `bunx opennextjs-cloudflare build` → check `.open-next\u002Fserver-functions\u002Fdefault\u002Fhandler.mjs.meta.json`, remove unused dependencies, or use dynamic imports.\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#worker-size-limits\n\n---\n\n### 2. Cannot Perform I\u002FO on Behalf of Different Request\n\n**Error**: `\"Cannot perform I\u002FO on behalf of a different request\"`\n\n**Cause**: Global database client reused across requests (Workers limitation)\n\n**Quick Fix**: Create database clients INSIDE request handlers, never globally. Or use Cloudflare D1 which is designed for Workers.\n\n```typescript\n\u002F\u002F ❌ WRONG: Global client\nconst pool = new Pool({ connectionString: process.env.DATABASE_URL });\n\n\u002F\u002F ✅ CORRECT: Request-scoped\nexport async function GET() {\n  const pool = new Pool({ connectionString: process.env.DATABASE_URL });\n  \u002F\u002F ... use pool\n  await pool.end();\n}\n```\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#cannot-perform-io-on-behalf-of-a-different-request\n\n---\n\n### 3. NPM Package Import Failures\n\n**Error**: `\"Could not resolve '\u003Cpackage>'\"`\n\n**Quick Fix**: Enable `nodejs_compat` flag in wrangler.jsonc, and\u002For create `.env` with `WRANGLER_BUILD_PLATFORM=\"node\"`.\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#npm-packages-fail-to-import\n\n---\n\n### 4. SSRF Vulnerability (CVE-2025-6087)\n\n**Vulnerability**: Server-Side Request Forgery via `\u002F_next\u002Fimage` endpoint in versions \u003C 1.3.0\n\n**Quick Fix**: Upgrade immediately: `bun add -d @opennextjs\u002Fcloudflare@^1.3.0`\n\n**Source**: https:\u002F\u002Fgithub.com\u002Fadvisories\u002FGHSA-rvpw-p7vw-wj3m\n\n---\n\n### 5. Failed to Load Chunk (Turbopack)\n\n**Error**: `\"Failed to load chunk server\u002Fchunks\u002Fssr\u002F\"`\n\n**Quick Fix**: Remove `--turbo` flag from build command. Use `next build` (standard), NOT `next build --turbo`.\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#failed-to-load-chunk\n\n---\n\n**More Errors**: Load `references\u002Ferror-catalog-extended.md` for 6 additional documented errors including FinalizationRegistry issues, Durable Objects warnings, Prisma conflicts, cross-fetch errors, and Windows development issues\n\n## Feature Support Matrix\n\n| Feature | Status | Notes |\n|---------|--------|-------|\n| **App Router** | ✅ Fully Supported | Latest App Router features work |\n| **Pages Router** | ✅ Fully Supported | Legacy Pages Router supported |\n| **Route Handlers** | ✅ Fully Supported | API routes work as expected |\n| **React Server Components** | ✅ Fully Supported | RSC fully functional |\n| **Server Actions** | ✅ Fully Supported | Server Actions work |\n| **SSG** | ✅ Fully Supported | Static Site Generation |\n| **SSR** | ✅ Fully Supported | Server-Side Rendering |\n| **ISR** | ✅ Fully Supported | Incremental Static Regeneration |\n| **Middleware** | ✅ Supported | Except Node.js middleware (15.2+) |\n| **Image Optimization** | ✅ Supported | Via Cloudflare Images |\n| **Partial Prerendering (PPR)** | ✅ Supported | Experimental in Next.js |\n| **Composable Caching** | ✅ Supported | `'use cache'` directive |\n| **Response Streaming** | ✅ Supported | Streaming responses work |\n| **`next\u002Fafter` API** | ✅ Supported | Post-response async work |\n| **Node.js Middleware (15.2+)** | ❌ Not Supported | Future support planned |\n| **Edge Runtime** | ❌ Not Supported | Use Node.js runtime |\n\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fframework-guides\u002Fweb-apps\u002Fnextjs\u002F#next-js-supported-features\n\n## Cloudflare Services Integration\n\nAccess Cloudflare bindings via `process.env` in Next.js route handlers:\n\n```typescript\nimport type { NextRequest } from 'next\u002Fserver';\n\nexport async function GET(request: NextRequest) {\n  const env = process.env as any;\n\n  \u002F\u002F D1 Database\n  const users = await env.DB.prepare('SELECT * FROM users').all();\n\n  \u002F\u002F R2 Storage\n  const file = await env.BUCKET.get('file.txt');\n\n  \u002F\u002F KV Storage\n  const value = await env.KV.get('key');\n\n  \u002F\u002F Workers AI\n  const ai = await env.AI.run('@cf\u002Fmeta\u002Fllama-3-8b-instruct', { prompt: 'Hello' });\n\n  return Response.json({ users, file, value, ai });\n}\n```\n\n**Wrangler Bindings Configuration**:\n```jsonc\n{\n  \"d1_databases\": [{ \"binding\": \"DB\", \"database_id\": \"...\" }],\n  \"r2_buckets\": [{ \"binding\": \"BUCKET\", \"bucket_name\": \"...\" }],\n  \"kv_namespaces\": [{ \"binding\": \"KV\", \"id\": \"...\" }],\n  \"ai\": { \"binding\": \"AI\" }\n}\n```\n\n**Detailed Integration Patterns**: Load `references\u002Fservice-integration-patterns.md` for complete patterns including:\n- D1: Queries, inserts, transactions, batch operations\n- R2: Upload, download, list, delete with streaming\n- KV: Get, set with TTL, delete, list keys\n- Workers AI: Text generation, embeddings, image classification\n- Multi-service integration examples\n- TypeScript types for bindings (`npm run cf-typegen`)\n\n**Related Skills**: `cloudflare-d1`, `cloudflare-r2`, `cloudflare-kv`, `cloudflare-workers-ai` for service-specific deep dives\n\n## Image Optimization & Caching\n\n**Images**: Automatic optimization via Cloudflare Images (billed separately). Configure in `open-next.config.ts` with `imageOptimization: { loader: 'cloudflare' }`. Use standard Next.js `\u003CImage \u002F>` component.\n\n**Caching**: OpenNext provides sensible defaults. Override in `open-next.config.ts` if needed. See https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Fcaching for advanced configuration\n\n## Known Limitations\n\n### Not Yet Supported\n\n1. **Node.js Middleware (Next.js 15.2+)**\n   - Introduced in Next.js 15.2\n   - Support planned for future releases\n   - Use standard middleware for now\n\n2. **Edge Runtime**\n   - Only Node.js runtime supported\n   - Remove `export const runtime = \"edge\"` from your app\n\n3. **Full Windows Support**\n   - Development on Windows not fully guaranteed\n   - Use WSL, VM, or Linux-based CI\u002FCD\n\n### Worker Size Constraints\n\n- **Free plan**: 3 MiB limit (gzip-compressed)\n- **Paid plan**: 10 MiB limit (gzip-compressed)\n- Monitor bundle size during development\n- Use dynamic imports for code splitting\n\n### Database Connections\n\n- External database clients (PostgreSQL, MySQL) must be request-scoped\n- Cannot reuse connections across requests (Workers limitation)\n- Prefer Cloudflare D1 for database needs (designed for Workers)\n\n## Deployment\n\n**Local**: `npm run deploy` (builds and deploys)\n\n**CI\u002FCD**: Use `npm run deploy` command in GitHub Actions, GitLab CI, or Cloudflare Workers Builds (auto-detected)\n\n**Custom Domains**: Workers & Pages → Settings → Domains & Routes (domain must be on Cloudflare)\n\n## TypeScript & Testing\n\n**TypeScript Types**: Run `npm run cf-typegen` to generate `cloudflare-env.d.ts` with typed bindings (D1Database, R2Bucket, KVNamespace, Ai)\n\n**Testing**: Always test in `preview` mode before deployment to catch Workers-specific runtime issues and verify bindings work correctly\n\n## Migration from Other Platforms\n\n### From Vercel\n\n1. Copy existing Next.js project\n2. Run existing project migration steps (above)\n3. Update environment variables in Cloudflare dashboard\n4. Replace Vercel-specific features:\n   - Vercel Postgres → Cloudflare D1\n   - Vercel Blob → Cloudflare R2\n   - Vercel KV → Cloudflare KV\n   - Vercel Edge Config → Cloudflare KV\n5. Test thoroughly with `npm run preview`\n6. Deploy with `npm run deploy`\n\n### From AWS \u002F Other Platforms\n\nSame process as Vercel migration - the adapter handles Next.js standard features automatically.\n\n## Resources\n\n### Official Documentation\n- **OpenNext Cloudflare**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\n- **Cloudflare Next.js Guide**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fframework-guides\u002Fweb-apps\u002Fnextjs\u002F\n- **Next.js Docs**: https:\u002F\u002Fnextjs.org\u002Fdocs\n\n### Troubleshooting\n- **Troubleshooting Guide**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting\n- **Known Issues**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Fknown-issues\n- **GitHub Issues**: https:\u002F\u002Fgithub.com\u002Fopennextjs\u002Fopennextjs-cloudflare\u002Fissues\n\n### Related Skills\n- `cloudflare-worker-base` - Base Worker setup with Hono + Vite + React\n- `cloudflare-d1` - D1 database integration\n- `cloudflare-r2` - R2 object storage\n- `cloudflare-kv` - KV key-value storage\n- `cloudflare-workers-ai` - Workers AI integration\n- `cloudflare-vectorize` - Vector database for RAG\n\n## Quick Reference\n\n### Essential Commands\n\n```bash\n# New project\nnpm create cloudflare@latest -- my-next-app --framework=next\n\n# Development\nnpm run dev      # Fast iteration (Next.js dev server)\nnpm run preview  # Test in workerd (production-like)\n\n# Deployment\nnpm run deploy   # Build and deploy to Cloudflare\n\n# TypeScript\nnpm run cf-typegen  # Generate binding types\n```\n\n### Critical Configuration\n\n```jsonc\n\u002F\u002F wrangler.jsonc\n{\n  \"compatibility_date\": \"2025-05-05\",  \u002F\u002F Minimum!\n  \"compatibility_flags\": [\"nodejs_compat\"]  \u002F\u002F Required!\n}\n```\n\n### Common Pitfalls\n\n1. ❌ Using Edge runtime → ✅ Use Node.js runtime\n2. ❌ Global DB clients → ✅ Request-scoped clients\n3. ❌ Old compatibility_date → ✅ Use 2025-05-05+\n4. ❌ Missing nodejs_compat → ✅ Add to compatibility_flags\n5. ❌ Only testing in `dev` → ✅ Always test `preview` before deploy\n6. ❌ Using Turbopack → ✅ Use standard Next.js build\n\n---\n\n**Production Tested**: Official Cloudflare support and active community\n**Token Savings**: ~59% vs manual setup\n**Errors Prevented**: 11+ documented issues\n**Last Verified**: 2025-12-04\n","# Cloudflare Next.js Deployment Skill\n\nDeploy Next.js applications to Cloudflare Workers using the OpenNext Cloudflare adapter for production-ready serverless Next.js hosting.\n\n## When to Load References\n\nLoad additional reference files based on your specific task:\n\n- **`references\u002Ferror-catalog-extended.md`** - Load when encountering ANY error during setup, build, or deployment. Contains complete catalog of 11+ documented issues with root causes, solutions, and official sources.\n\n- **`references\u002Fservice-integration-patterns.md`** - Load when integrating Cloudflare services (D1, R2, KV, Workers AI) with Next.js. Contains complete patterns for database queries, file uploads, caching, and AI inference.\n\n- **`references\u002Ftroubleshooting.md`** - Load for general troubleshooting and debugging guidance beyond the error catalog.\n\n- **`references\u002Ffeature-support.md`** - Load when checking if a specific Next.js feature is supported on Cloudflare Workers (e.g., \"Can I use Server Actions?\", \"Does ISR work?\").\n\n- **`references\u002Fdatabase-client-example.ts`** - Load when integrating external database clients (Drizzle, Prisma, PostgreSQL, MySQL) with proper request-scoping patterns required by Workers.\n\n- **`references\u002Fopen-next.config.ts`** - Load when configuring caching behavior, image optimization, or custom OpenNext settings.\n\n- **`references\u002Fpackage.json`** - Load when setting up a new project or migrating an existing Next.js application to Cloudflare Workers.\n\n- **`references\u002Fwrangler.jsonc`** - Load when configuring Worker settings, compatibility flags, environment bindings (D1, R2, KV, AI), or deployment options.\n\n## Use This Skill When\n\n- Deploying Next.js applications (App Router or Pages Router) to Cloudflare Workers\n- Need server-side rendering (SSR), static site generation (SSG), or incremental static regeneration (ISR) on Cloudflare\n- Migrating existing Next.js apps from Vercel, AWS, or other platforms to Cloudflare\n- Building full-stack Next.js applications with Cloudflare services (D1, R2, KV, Workers AI)\n- Need React Server Components, Server Actions, or Next.js middleware on Workers\n- Want global edge deployment with Cloudflare's network\n\n## Key Differences from Standard Next.js\n\n**OpenNext Adapter** transforms Next.js builds for Workers. **Critical requirements**:\n- Node.js runtime (NOT Edge) via `nodejs_compat` flag\n- Request-scoped database clients (global clients fail)\n- Worker size limits: 3 MiB (free) \u002F 10 MiB (paid)\n- Dual testing: `next dev` for speed, `preview` for production-like validation\n\n## Setup Patterns\n\n### New Project Setup\n\nUse Cloudflare's `create-cloudflare` (C3) CLI to scaffold a new Next.js project pre-configured for Workers:\n\n```bash\nnpm create cloudflare@latest -- my-next-app --framework=next\n```\n\n**What this does**:\n1. Runs Next.js official setup tool (`create-next-app`)\n2. Installs `@opennextjs\u002Fcloudflare` adapter\n3. Creates `wrangler.jsonc` with correct configuration\n4. Creates `open-next.config.ts` for caching configuration\n5. Adds deployment scripts to `package.json`\n6. Optionally deploys immediately to Cloudflare\n\n**Development workflow**:\n```bash\nnpm run dev      # Next.js dev server (fast reloads)\nnpm run preview  # Test in workerd runtime (production-like)\nnpm run deploy   # Build and deploy to Cloudflare\n```\n\n### Existing Project Migration\n\nTo add the OpenNext adapter to an existing Next.js application:\n\n#### 1. Install the adapter\n\n```bash\nbun add -d @opennextjs\u002Fcloudflare\n```\n\n##### Secure Installation\n\nAdapter packages handle production traffic — pin exact versions and audit before upgrading. Follow supply chain security best practices:\n\n- **Block post-install scripts** — `npm config set ignore-scripts true` (or Bun: disabled by default)\n- **Cooldown period** — Wait 7 days for new package versions to be vetted by the community\n- **Audit before installing** — Run `socket package score npm \u003Cpkg>` or use `socket npm install \u003Cpkg>` to check packages\n\nLoad the `dependency-upgrade` skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.\n\n#### 2. Create wrangler.jsonc\n\n```jsonc\n{\n  \"name\": \"my-next-app\",\n  \"compatibility_date\": \"2025-05-05\",\n  \"compatibility_flags\": [\"nodejs_compat\"]\n}\n```\n\n**Critical configuration**:\n- `compatibility_date`: **Minimum `2025-05-05`** (for FinalizationRegistry support)\n- `compatibility_flags`: **Must include `nodejs_compat`** (for Node.js runtime)\n\n#### 3. Create open-next.config.ts\n\n```typescript\nimport { defineCloudflareConfig } from \"@opennextjs\u002Fcloudflare\";\n\nexport default defineCloudflareConfig({\n  \u002F\u002F Caching configuration (optional)\n  \u002F\u002F See: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Fcaching\n});\n```\n\n#### 4. Update package.json scripts\n\n```json\n{\n  \"scripts\": {\n    \"dev\": \"next dev\",\n    \"build\": \"next build\",\n    \"preview\": \"opennextjs-cloudflare build && opennextjs-cloudflare preview\",\n    \"deploy\": \"opennextjs-cloudflare build && opennextjs-cloudflare deploy\",\n    \"cf-typegen\": \"wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts\"\n  }\n}\n```\n\n**Script purposes**:\n- `dev`: Next.js development server (fast iteration)\n- `preview`: Build + run in workerd runtime (test before deploy)\n- `deploy`: Build + deploy to Cloudflare\n- `cf-typegen`: Generate TypeScript types for Cloudflare bindings\n\n#### 5. Ensure Node.js runtime (not Edge)\n\nRemove Edge runtime exports from your app:\n\n```typescript\n\u002F\u002F ❌ REMOVE THIS (Edge runtime not supported)\nexport const runtime = \"edge\";\n\n\u002F\u002F ✅ Use Node.js runtime (default)\n\u002F\u002F No export needed - Node.js is default\n```\n\n## Development Workflow\n\n**Dual Testing Required**:\n- `npm run dev` - Fast iteration (Next.js dev server)\n- `npm run preview` - Production-like testing (workerd runtime, **REQUIRED before deploy**)\n- `npm run deploy` - Build and deploy\n\n**Critical**: Always test `preview` before deploying to catch Workers-specific runtime issues\n\n## Critical Configuration\n\n**wrangler.jsonc** minimum requirements:\n```jsonc\n{\n  \"compatibility_date\": \"2025-05-05\",  \u002F\u002F Minimum for FinalizationRegistry\n  \"compatibility_flags\": [\"nodejs_compat\"]  \u002F\u002F Required for Node.js runtime\n}\n```\n\n**Cloudflare Bindings**: Add D1, R2, KV, or AI bindings in `wrangler.jsonc`, access via `process.env` (see \"Cloudflare Services Integration\" section for complete patterns)\n\n**Package Exports** (if needed): Create `.env` with `WRANGLER_BUILD_PLATFORM=\"node\"` to prioritize Node.js exports\n\n## Top 5 Critical Errors\n\nThese are the most common deployment-blocking errors. **For the complete catalog of 11+ errors, load `references\u002Ferror-catalog-extended.md`**.\n\n### 1. Worker Size Limit Exceeded\n\n**Error**: `\"Your Worker exceeded the size limit of 3 MiB\"` (Free) or `\"10 MiB\"` (Paid)\n\n**Quick Fix**: Upgrade plan, analyze bundle with `bunx opennextjs-cloudflare build` → check `.open-next\u002Fserver-functions\u002Fdefault\u002Fhandler.mjs.meta.json`, remove unused dependencies, or use dynamic imports.\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#worker-size-limits\n\n---\n\n### 2. Cannot Perform I\u002FO on Behalf of Different Request\n\n**Error**: `\"Cannot perform I\u002FO on behalf of a different request\"`\n\n**Cause**: Global database client reused across requests (Workers limitation)\n\n**Quick Fix**: Create database clients INSIDE request handlers, never globally. Or use Cloudflare D1 which is designed for Workers.\n\n```typescript\n\u002F\u002F ❌ WRONG: Global client\nconst pool = new Pool({ connectionString: process.env.DATABASE_URL });\n\n\u002F\u002F ✅ CORRECT: Request-scoped\nexport async function GET() {\n  const pool = new Pool({ connectionString: process.env.DATABASE_URL });\n  \u002F\u002F ... use pool\n  await pool.end();\n}\n```\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#cannot-perform-io-on-behalf-of-a-different-request\n\n---\n\n### 3. NPM Package Import Failures\n\n**Error**: `\"Could not resolve '\u003Cpackage>'\"`\n\n**Quick Fix**: Enable `nodejs_compat` flag in wrangler.jsonc, and\u002For create `.env` with `WRANGLER_BUILD_PLATFORM=\"node\"`.\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#npm-packages-fail-to-import\n\n---\n\n### 4. SSRF Vulnerability (CVE-2025-6087)\n\n**Vulnerability**: Server-Side Request Forgery via `\u002F_next\u002Fimage` endpoint in versions \u003C 1.3.0\n\n**Quick Fix**: Upgrade immediately: `bun add -d @opennextjs\u002Fcloudflare@^1.3.0`\n\n**Source**: https:\u002F\u002Fgithub.com\u002Fadvisories\u002FGHSA-rvpw-p7vw-wj3m\n\n---\n\n### 5. Failed to Load Chunk (Turbopack)\n\n**Error**: `\"Failed to load chunk server\u002Fchunks\u002Fssr\u002F\"`\n\n**Quick Fix**: Remove `--turbo` flag from build command. Use `next build` (standard), NOT `next build --turbo`.\n\n**Source**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting#failed-to-load-chunk\n\n---\n\n**More Errors**: Load `references\u002Ferror-catalog-extended.md` for 6 additional documented errors including FinalizationRegistry issues, Durable Objects warnings, Prisma conflicts, cross-fetch errors, and Windows development issues\n\n## Feature Support Matrix\n\n| Feature | Status | Notes |\n|---------|--------|-------|\n| **App Router** | ✅ Fully Supported | Latest App Router features work |\n| **Pages Router** | ✅ Fully Supported | Legacy Pages Router supported |\n| **Route Handlers** | ✅ Fully Supported | API routes work as expected |\n| **React Server Components** | ✅ Fully Supported | RSC fully functional |\n| **Server Actions** | ✅ Fully Supported | Server Actions work |\n| **SSG** | ✅ Fully Supported | Static Site Generation |\n| **SSR** | ✅ Fully Supported | Server-Side Rendering |\n| **ISR** | ✅ Fully Supported | Incremental Static Regeneration |\n| **Middleware** | ✅ Supported | Except Node.js middleware (15.2+) |\n| **Image Optimization** | ✅ Supported | Via Cloudflare Images |\n| **Partial Prerendering (PPR)** | ✅ Supported | Experimental in Next.js |\n| **Composable Caching** | ✅ Supported | `'use cache'` directive |\n| **Response Streaming** | ✅ Supported | Streaming responses work |\n| **`next\u002Fafter` API** | ✅ Supported | Post-response async work |\n| **Node.js Middleware (15.2+)** | ❌ Not Supported | Future support planned |\n| **Edge Runtime** | ❌ Not Supported | Use Node.js runtime |\n\n**Source**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fframework-guides\u002Fweb-apps\u002Fnextjs\u002F#next-js-supported-features\n\n## Cloudflare Services Integration\n\nAccess Cloudflare bindings via `process.env` in Next.js route handlers:\n\n```typescript\nimport type { NextRequest } from 'next\u002Fserver';\n\nexport async function GET(request: NextRequest) {\n  const env = process.env as any;\n\n  \u002F\u002F D1 Database\n  const users = await env.DB.prepare('SELECT * FROM users').all();\n\n  \u002F\u002F R2 Storage\n  const file = await env.BUCKET.get('file.txt');\n\n  \u002F\u002F KV Storage\n  const value = await env.KV.get('key');\n\n  \u002F\u002F Workers AI\n  const ai = await env.AI.run('@cf\u002Fmeta\u002Fllama-3-8b-instruct', { prompt: 'Hello' });\n\n  return Response.json({ users, file, value, ai });\n}\n```\n\n**Wrangler Bindings Configuration**:\n```jsonc\n{\n  \"d1_databases\": [{ \"binding\": \"DB\", \"database_id\": \"...\" }],\n  \"r2_buckets\": [{ \"binding\": \"BUCKET\", \"bucket_name\": \"...\" }],\n  \"kv_namespaces\": [{ \"binding\": \"KV\", \"id\": \"...\" }],\n  \"ai\": { \"binding\": \"AI\" }\n}\n```\n\n**Detailed Integration Patterns**: Load `references\u002Fservice-integration-patterns.md` for complete patterns including:\n- D1: Queries, inserts, transactions, batch operations\n- R2: Upload, download, list, delete with streaming\n- KV: Get, set with TTL, delete, list keys\n- Workers AI: Text generation, embeddings, image classification\n- Multi-service integration examples\n- TypeScript types for bindings (`npm run cf-typegen`)\n\n**Related Skills**: `cloudflare-d1`, `cloudflare-r2`, `cloudflare-kv`, `cloudflare-workers-ai` for service-specific deep dives\n\n## Image Optimization & Caching\n\n**Images**: Automatic optimization via Cloudflare Images (billed separately). Configure in `open-next.config.ts` with `imageOptimization: { loader: 'cloudflare' }`. Use standard Next.js `\u003CImage \u002F>` component.\n\n**Caching**: OpenNext provides sensible defaults. Override in `open-next.config.ts` if needed. See https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Fcaching for advanced configuration\n\n## Known Limitations\n\n### Not Yet Supported\n\n1. **Node.js Middleware (Next.js 15.2+)**\n   - Introduced in Next.js 15.2\n   - Support planned for future releases\n   - Use standard middleware for now\n\n2. **Edge Runtime**\n   - Only Node.js runtime supported\n   - Remove `export const runtime = \"edge\"` from your app\n\n3. **Full Windows Support**\n   - Development on Windows not fully guaranteed\n   - Use WSL, VM, or Linux-based CI\u002FCD\n\n### Worker Size Constraints\n\n- **Free plan**: 3 MiB limit (gzip-compressed)\n- **Paid plan**: 10 MiB limit (gzip-compressed)\n- Monitor bundle size during development\n- Use dynamic imports for code splitting\n\n### Database Connections\n\n- External database clients (PostgreSQL, MySQL) must be request-scoped\n- Cannot reuse connections across requests (Workers limitation)\n- Prefer Cloudflare D1 for database needs (designed for Workers)\n\n## Deployment\n\n**Local**: `npm run deploy` (builds and deploys)\n\n**CI\u002FCD**: Use `npm run deploy` command in GitHub Actions, GitLab CI, or Cloudflare Workers Builds (auto-detected)\n\n**Custom Domains**: Workers & Pages → Settings → Domains & Routes (domain must be on Cloudflare)\n\n## TypeScript & Testing\n\n**TypeScript Types**: Run `npm run cf-typegen` to generate `cloudflare-env.d.ts` with typed bindings (D1Database, R2Bucket, KVNamespace, Ai)\n\n**Testing**: Always test in `preview` mode before deployment to catch Workers-specific runtime issues and verify bindings work correctly\n\n## Migration from Other Platforms\n\n### From Vercel\n\n1. Copy existing Next.js project\n2. Run existing project migration steps (above)\n3. Update environment variables in Cloudflare dashboard\n4. Replace Vercel-specific features:\n   - Vercel Postgres → Cloudflare D1\n   - Vercel Blob → Cloudflare R2\n   - Vercel KV → Cloudflare KV\n   - Vercel Edge Config → Cloudflare KV\n5. Test thoroughly with `npm run preview`\n6. Deploy with `npm run deploy`\n\n### From AWS \u002F Other Platforms\n\nSame process as Vercel migration - the adapter handles Next.js standard features automatically.\n\n## Resources\n\n### Official Documentation\n- **OpenNext Cloudflare**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\n- **Cloudflare Next.js Guide**: https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fframework-guides\u002Fweb-apps\u002Fnextjs\u002F\n- **Next.js Docs**: https:\u002F\u002Fnextjs.org\u002Fdocs\n\n### Troubleshooting\n- **Troubleshooting Guide**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Ftroubleshooting\n- **Known Issues**: https:\u002F\u002Fopennext.js.org\u002Fcloudflare\u002Fknown-issues\n- **GitHub Issues**: https:\u002F\u002Fgithub.com\u002Fopennextjs\u002Fopennextjs-cloudflare\u002Fissues\n\n### Related Skills\n- `cloudflare-worker-base` - Base Worker setup with Hono + Vite + React\n- `cloudflare-d1` - D1 database integration\n- `cloudflare-r2` - R2 object storage\n- `cloudflare-kv` - KV key-value storage\n- `cloudflare-workers-ai` - Workers AI integration\n- `cloudflare-vectorize` - Vector database for RAG\n\n## Quick Reference\n\n### Essential Commands\n\n```bash\n# New project\nnpm create cloudflare@latest -- my-next-app --framework=next\n\n# Development\nnpm run dev      # Fast iteration (Next.js dev server)\nnpm run preview  # Test in workerd (production-like)\n\n# Deployment\nnpm run deploy   # Build and deploy to Cloudflare\n\n# TypeScript\nnpm run cf-typegen  # Generate binding types\n```\n\n### Critical Configuration\n\n```jsonc\n\u002F\u002F wrangler.jsonc\n{\n  \"compatibility_date\": \"2025-05-05\",  \u002F\u002F Minimum!\n  \"compatibility_flags\": [\"nodejs_compat\"]  \u002F\u002F Required!\n}\n```\n\n### Common Pitfalls\n\n1. ❌ Using Edge runtime → ✅ Use Node.js runtime\n2. ❌ Global DB clients → ✅ Request-scoped clients\n3. ❌ Old compatibility_date → ✅ Use 2025-05-05+\n4. ❌ Missing nodejs_compat → ✅ Add to compatibility_flags\n5. ❌ Only testing in `dev` → ✅ Always test `preview` before deploy\n6. ❌ Using Turbopack → ✅ Use standard Next.js build\n\n---\n\n**Production Tested**: Official Cloudflare support and active community\n**Token Savings**: ~59% vs manual setup\n**Errors Prevented**: 11+ documented issues\n**Last Verified**: 2025-12-04\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25,"keywords":26,"last_verified":48,"official_docs":49,"token_savings":50,"cloudflare_guide":51,"errors_prevented":52,"package_versions":53,"compatibility_requirements":57},"1.0.0",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"Cloudflare Next.js","OpenNext Cloudflare","@opennextjs\u002Fcloudflare","Next.js Workers","Next.js App Router Cloudflare","Next.js Pages Router Cloudflare","Next.js SSR Cloudflare","Next.js ISR","server components cloudflare","server actions cloudflare","Next.js middleware workers","nextjs d1","nextjs r2","nextjs kv","Next.js deployment","opennextjs-cloudflare cli","nodejs_compat","worker size limit","next.js runtime compatibility","database connection scoping","Next.js migration cloudflare",1763683200000,"https:\u002F\u002Fopennext.js.org\u002Fcloudflare","~59%","https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fframework-guides\u002Fweb-apps\u002Fnextjs\u002F",10,{"next":54,"wrangler":55,"@opennextjs\u002Fcloudflare":56},"^14.2.0 || ^15.0.0 || ^16.0.0","^4.50.0","^1.13.1",{"compatibility_date":58,"compatibility_flags":59},"2025-05-05",[43],"main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-nextjs",{"tool":72,"command":73},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-nextjs",{"tool":75,"command":76},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill cloudflare-nextjs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002FSKILL.md",true,[80,86,92,98,102,106,110,114,118,122,126,130],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"assets\u002Fworkflow-diagram.md","ASSET","资产文件",16170,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Fassets\u002Fworkflow-diagram.md",{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fdatabase-client-example.ts","SCRIPT","脚本",3741,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Fdatabase-client-example.ts",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Ferror-catalog-extended.md","REFERENCE","参考文档",6911,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Ferror-catalog-extended.md",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Ffeature-support.md",12556,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Ffeature-support.md",{"path":103,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fopen-next.config.ts",750,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Fopen-next.config.ts",{"path":107,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fpackage.json",729,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Fpackage.json",{"path":111,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fservice-integration-patterns.md",9923,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Fservice-integration-patterns.md",{"path":115,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Ftroubleshooting.md",12356,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Ftroubleshooting.md",{"path":119,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002Fwrangler.jsonc",2276,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Freferences\u002Fwrangler.jsonc",{"path":123,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fanalyze-bundle.sh",3980,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Fscripts\u002Fanalyze-bundle.sh",{"path":127,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fsetup-existing-project.sh",3878,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Fscripts\u002Fsetup-existing-project.sh",{"path":131,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Fsetup-new-project.sh",985,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fcloudflare-nextjs\u002Fskills\u002Fcloudflare-nextjs\u002Fscripts\u002Fsetup-new-project.sh",[135,143,150,157,164,171],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":139,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]