Cloudflare Nextjs
Helps with Cloudflare, Next.js as part of deploying and managing cloud infrastructure workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add cloudflare-nextjs npx -- -y @trustedskills/cloudflare-nextjs
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"cloudflare-nextjs": {
"command": "npx",
"args": [
"-y",
"@trustedskills/cloudflare-nextjs"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The cloudflare-nextjs skill enables AI agents to deploy Next.js applications directly to Cloudflare Pages using the official adapter. It streamlines the build and deployment pipeline by handling configuration, environment variables, and production builds automatically.
When to use it
- Rapidly prototype server-side rendered React applications without managing complex CI/CD infrastructure.
- Deploy Next.js projects that require specific Cloudflare Workers integration or edge functions.
- Automate the publishing of static sites generated by Next.js to a global CDN instantly.
- Manage environment-specific configurations (like API keys) securely during the deployment process.
Key capabilities
- Direct integration with the
@cloudflare/next-on-pagesadapter for seamless compatibility. - Automatic handling of build artifacts and optimization settings specific to Cloudflare Pages.
- Support for defining custom environment variables required by the Next.js application.
- Triggering production builds remotely via AI agent commands.
Example prompts
- "Deploy my Next.js portfolio site to Cloudflare Pages using the cloudflare-nextjs skill."
- "Configure and push a new version of my e-commerce app, ensuring the API key is set as a secure environment variable."
- "Build and deploy the latest changes from my GitHub repository to Cloudflare Pages with automatic caching enabled."
Tips & gotchas
Ensure your Next.js project includes the @cloudflare/next-on-pages package in its dependencies before attempting deployment. Verify that all required environment variables are explicitly defined in the skill configuration to prevent runtime errors on the edge network.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.